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

@@ -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")