diff options
| author | Ben Boeckel <ben.boeckel@kitware.com> | 2018-10-26 17:28:47 -0400 |
|---|---|---|
| committer | Ben Boeckel <ben.boeckel@kitware.com> | 2018-10-26 17:30:18 -0400 |
| commit | 07d6f6bc61f9ad5d1f6ab39b878c3c9a230c3fcc (patch) | |
| tree | af504a47dc5a75f4d15b55e39a7406c7de13b240 /cmake/ProjVersion.cmake | |
| parent | 35eb793ff6b411cc88fc578b4d99e34cd25ca613 (diff) | |
| download | PROJ-07d6f6bc61f9ad5d1f6ab39b878c3c9a230c3fcc.tar.gz PROJ-07d6f6bc61f9ad5d1f6ab39b878c3c9a230c3fcc.zip | |
ProjVersion: use cmake_parse_arguments
CMake provides this function, but only in CMake 2.8.3 and up. This
minimum version bump is OK because it is from 2010, but the code
requires C++11 features to exist. Any platform with a suitable compiler,
but too-old of a CMake can easily compile the required CMake version as
well.
Diffstat (limited to 'cmake/ProjVersion.cmake')
| -rw-r--r-- | cmake/ProjVersion.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/ProjVersion.cmake b/cmake/ProjVersion.cmake index 1121cd36..f761dc47 100644 --- a/cmake/ProjVersion.cmake +++ b/cmake/ProjVersion.cmake @@ -17,8 +17,12 @@ # MAJOR.MINOR version is used to set SOVERSION # +include(CMakeParseArguments) + macro(proj_version) - parse_arguments(THIS_VERSION "MAJOR;MINOR;PATCH;" + cmake_parse_arguments(THIS_VERSION + "" + "MAJOR;MINOR;PATCH" "" ${ARGN}) |
