summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Guilloux <glx22@users.noreply.github.com>2021-05-01 12:11:07 +0200
committerGitHub <noreply@github.com>2021-05-01 11:11:07 +0100
commit2985277becdfd390d6116afab1fb2ada0d7940b1 (patch)
treef949c23de75c424e84e72ef5177c73b8667e69d8
parent40528db993e6883f7856c8d860ec0385e42e3bad (diff)
downloadopenttd-2985277becdfd390d6116afab1fb2ada0d7940b1.tar.xz
Fix d4f0b6f4: [CMake] CMAKE_PROJECT_VERSION_XXX are not in CMake 3.9 (#9154)
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 87d055047..ecfbe408c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -74,9 +74,9 @@ add_custom_target(find_version
${CMAKE_COMMAND}
-DFIND_VERSION_BINARY_DIR=${CMAKE_BINARY_DIR}/generated
-DCPACK_BINARY_DIR=${CMAKE_BINARY_DIR}
- -DREV_MAJOR=${CMAKE_PROJECT_VERSION_MAJOR}
- -DREV_MINOR=${CMAKE_PROJECT_VERSION_MINOR}
- -DREV_BUILD=${CMAKE_PROJECT_VERSION_PATCH}
+ -DREV_MAJOR=${PROJECT_VERSION_MAJOR}
+ -DREV_MINOR=${PROJECT_VERSION_MINOR}
+ -DREV_BUILD=${PROJECT_VERSION_PATCH}
-P "${CMAKE_SOURCE_DIR}/cmake/scripts/FindVersion.cmake"
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
BYPRODUCTS ${GENERATED_SOURCE_FILES}