]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
CMake: remove needless policy setting
authorRolf Eike Beer <eb@emlix.com>
Tue, 5 Sep 2023 10:14:46 +0000 (12:14 +0200)
committerRolf Eike Beer <eb@emlix.com>
Tue, 5 Sep 2023 10:14:46 +0000 (12:14 +0200)
These policies were all introduced before CMake 3.9, so they will automatically
be initialized to the new behavior when requesting a minimum version of 3.9.

CMakeLists.txt

index d0115d45953bdaec3f3653ac72429807649aa9e8..2484d1f501eaf3aed341b48ec016ae60282e8046 100644 (file)
@@ -5,23 +5,10 @@
 #   c++11, which isn't available on e.g HPUX.
 cmake_minimum_required(VERSION 3.9)
 
-# The project() command manages VERSION variables.
-cmake_policy(SET CMP0048 NEW)
-
 # JSON-C library is C only project.
 # PROJECT_VERSION{,_MAJOR,_MINOR,_PATCH} set by project():
 project(json-c LANGUAGES C VERSION 0.17.99)
 
-# Targets may not link directly to themselves.
-cmake_policy(SET CMP0038 NEW)
-
-# MACOSX_RPATH is enabled by default.
-# We set it explicitly to avoid the warning
-cmake_policy(SET CMP0042 NEW)
-
-# Only interpret if() arguments as variables or keywords when unquoted.
-cmake_policy(SET CMP0054 NEW)
-
 # set default build type if not specified by user
 if(NOT CMAKE_BUILD_TYPE)
        set(CMAKE_BUILD_TYPE debug)