From 035c6fa9390ecb66422ee684be71eea692989009 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Thu, 17 Apr 2014 15:46:08 +0100 Subject: Make ecm_setup_version interact well with CMP0048 When CMake policy CMP0048 (CMake 3.0) is set to NEW, the project() command is meant to manage the project's version variables. We therefore do not set the PROJECT_VERSION variables in this case. To make sure projects do not have to specify their version in multiple places, this also allows the keyword "PROJECT" to be passed to ecm_setup_version instead of an actual version number. In this case, the version passed to project() will be used. REVIEW: 117619 --- tests/ECMSetupVersionTest/old_version_file/main.c | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/ECMSetupVersionTest/old_version_file/main.c (limited to 'tests/ECMSetupVersionTest/old_version_file/main.c') diff --git a/tests/ECMSetupVersionTest/old_version_file/main.c b/tests/ECMSetupVersionTest/old_version_file/main.c new file mode 100644 index 00000000..c13815ce --- /dev/null +++ b/tests/ECMSetupVersionTest/old_version_file/main.c @@ -0,0 +1,4 @@ +int main() +{ + return 0; +} -- cgit v1.2.1