aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2020-01-19 16:36:37 +0100
committerSteve Markgraf <steve@steve-m.de>2020-01-19 16:38:26 +0100
commit4b72aab349ac55073208864036188ccc70e88b0a (patch)
tree315eec6baf37026d09348e6ac015b2849e94f6fc
parentd534cb69ade872bdf6acd6a9447573807c568977 (diff)
downloadosmo-fl2k-4b72aab349ac55073208864036188ccc70e88b0a.tar.gz
osmo-fl2k-4b72aab349ac55073208864036188ccc70e88b0a.tar.bz2
osmo-fl2k-4b72aab349ac55073208864036188ccc70e88b0a.zip
set CMake policy CMP0075 if it exists
Otherwise newer versions of CMake are throwing a warning.
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5fb110f..84bc55d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,6 +24,11 @@ project(libosmo-fl2k C)
include(GNUInstallDirs)
+# CMP0075 Include file check macros honor CMAKE_REQUIRED_LIBRARIES
+if(POLICY CMP0075)
+ cmake_policy(SET CMP0075 NEW)
+endif()
+
#select the release build type by default to get optimization flags
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")