From 4b72aab349ac55073208864036188ccc70e88b0a Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Sun, 19 Jan 2020 16:36:37 +0100 Subject: [PATCH] set CMake policy CMP0075 if it exists Otherwise newer versions of CMake are throwing a warning. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) 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")