File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -222,11 +222,13 @@ set(CMAKE_MODULE_PATH
222
222
include (GNUInstallDirs )
223
223
include (ParseVersion )
224
224
225
+ set (MONGOCXX_CURRENT_VERSION_FILE "" )
225
226
if (BUILD_VERSION STREQUAL "0.0.0" )
226
227
if (EXISTS ${CMAKE_BINARY_DIR} /VERSION_CURRENT )
227
228
file (STRINGS ${CMAKE_BINARY_DIR} /VERSION_CURRENT BUILD_VERSION )
228
229
elseif (EXISTS ${PROJECT_SOURCE_DIR} /build/VERSION_CURRENT )
229
- file (STRINGS ${PROJECT_SOURCE_DIR} /build/VERSION_CURRENT BUILD_VERSION )
230
+ set (MONGOCXX_CURRENT_VERSION_FILE ${PROJECT_SOURCE_DIR} /build/VERSION_CURRENT )
231
+ file (STRINGS ${MONGOCXX_CURRENT_VERSION_FILE} BUILD_VERSION )
230
232
else ()
231
233
find_package (PythonInterp )
232
234
if (PYTHONINTERP_FOUND )
@@ -377,7 +379,7 @@ set (top_DIST_local
377
379
README.md
378
380
THIRD-PARTY-NOTICES
379
381
build /.gitignore
380
- build /VERSION_CURRENT
382
+ ${MONGOCXX_CURRENT_VERSION_FILE}
381
383
# This sub-directory is added later, so manually include here
382
384
generate_uninstall/CMakeLists.txt
383
385
)
@@ -458,4 +460,3 @@ endif ()
458
460
if (CMAKE_GENERATOR_TOOLSET )
459
461
message (STATUS "\t instance: ${CMAKE_GENERATOR_TOOLSET} " )
460
462
endif ()
461
-
You can’t perform that action at this time.
0 commit comments