Changeset - r25624:c1d8d2ba6a32
[Not reviewed]
master
0 2 0
Loïc Guilloux - 3 years ago 2021-06-10 20:14:08
glx22@users.noreply.github.com
Fix #9329: [CMake] FindVersion.cmake relied on internal cmake variable (#9330)
2 files changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
CMakeLists.txt
Show inline comments
 
@@ -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}
cmake/scripts/FindVersion.cmake
Show inline comments
 
@@ -138,7 +138,7 @@ else()
 
    configure_file("${CMAKE_SOURCE_DIR}/src/rev.cpp.in"
 
            "${FIND_VERSION_BINARY_DIR}/rev.cpp")
 

	
 
    if(WIN32)
 
    if(WINDOWS)
 
        message(STATUS "Generating ottdres.rc")
 
        configure_file("${CMAKE_SOURCE_DIR}/src/os/windows/ottdres.rc.in"
 
                "${FIND_VERSION_BINARY_DIR}/ottdres.rc")
0 comments (0 inline, 0 general)