Skip to content

Commit

Permalink
CMake: add a policy_max to cmake_minimum_required(), and remove obsol…
Browse files Browse the repository at this point in the history
…ete cmake_policy() statements
  • Loading branch information
rouault committed Jan 14, 2024
1 parent 95db9aa commit b5aba60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
################################################################################
# General settings
################################################################################
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.16...3.28)

project(PROJ
DESCRIPTION "PROJ coordinate transformation software library"
LANGUAGES C CXX
)

# 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
set(CMAKE_CXX_STANDARD 11
Expand Down Expand Up @@ -126,7 +123,6 @@ set(PROJ_BUILD_VERSION "${PROJ_SOVERSION}.${PROJ_VERSION}")
include(Ccache)
include(ProjConfig)
include(ProjMac)
include(policies)

################################################################################
# Check for nlohmann_json
Expand Down
4 changes: 0 additions & 4 deletions cmake/policies.cmake

This file was deleted.

0 comments on commit b5aba60

Please sign in to comment.