diff options
author | Alex Merry <alex.merry@kde.org> | 2014-04-17 15:46:08 +0100 |
---|---|---|
committer | Alex Merry <alex.merry@kde.org> | 2014-04-25 10:39:56 +0100 |
commit | 035c6fa9390ecb66422ee684be71eea692989009 (patch) | |
tree | f95921a78c1e59b2ee890feb703f7a55341a2961 /tests/CMakeLists.txt | |
parent | 50b164a7ce83cdaec18209c7c2226d2fdb9cf29e (diff) | |
download | extra-cmake-modules-035c6fa9390ecb66422ee684be71eea692989009.tar.gz extra-cmake-modules-035c6fa9390ecb66422ee684be71eea692989009.tar.bz2 |
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
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a3e619a7..b0d7aec9 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -2,6 +2,7 @@ # directory and project add_subdirectory(ECMGenerateHeadersTest) +add_subdirectory(ECMSetupVersionTest) macro(ADD_TEST_MACRO NAME COMMAND) string(REPLACE "." "/" dir "${NAME}") |