Fix #9329: [CMake] FindVersion.cmake relied on internal cmake variable (#9330)

This commit is contained in:
Loïc Guilloux
2021-06-10 22:14:08 +02:00
committed by GitHub
parent 2924ac48c5
commit 076f3d26c2
2 changed files with 2 additions and 1 deletions

View File

@@ -77,6 +77,7 @@ add_custom_target(find_version
-DREV_MAJOR=${PROJECT_VERSION_MAJOR}
-DREV_MINOR=${PROJECT_VERSION_MINOR}
-DREV_BUILD=${PROJECT_VERSION_PATCH}
-DWINDOWS=${WIN32}
-P "${CMAKE_SOURCE_DIR}/cmake/scripts/FindVersion.cmake"
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
BYPRODUCTS ${GENERATED_SOURCE_FILES}