diff options
| author | Mike Taves <mwtoews@gmail.com> | 2020-02-04 14:12:23 +1300 |
|---|---|---|
| committer | Mike Taves <mwtoews@gmail.com> | 2020-02-04 14:14:03 +1300 |
| commit | 19b680c4612e531734a4fedfea0452ab11c7a0ae (patch) | |
| tree | 64023e88787f2918b13cbf4d4205cdc0126e636b /CMakeLists.txt | |
| parent | 6aadc40eacfc9fb7e10f81d3fb640be532830e5b (diff) | |
| download | PROJ-19b680c4612e531734a4fedfea0452ab11c7a0ae.tar.gz PROJ-19b680c4612e531734a4fedfea0452ab11c7a0ae.zip | |
Increase CMake minimum version from 3.5 to 3.9
* Also remove a few if()-blocks to support older CMake versions
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fde2b28a..5e0dba46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,15 +9,14 @@ ################################################################################ # General settings ################################################################################ -cmake_minimum_required(VERSION 3.5 FATAL_ERROR) +cmake_minimum_required(VERSION 3.9 FATAL_ERROR) # For historic reasons, the CMake PROJECT-NAME is PROJ4 project(PROJ4 LANGUAGES C CXX) set(PROJECT_INTERN_NAME PROJ) -if(NOT CMAKE_VERSION VERSION_LESS 3.1) - cmake_policy(SET CMP0054 NEW) -endif() +# Only interpret if() arguments as variables or keywords when unquoted +cmake_policy(SET CMP0054 NEW) # Set C++ version # Make CMAKE_CXX_STANDARD available as cache option overridable by user |
