set CMake policy CMP0075 if it exists

Otherwise newer versions of CMake are throwing a warning.
This commit is contained in:
Steve Markgraf 2020-01-19 16:36:37 +01:00
parent d534cb69ad
commit 4b72aab349
1 changed files with 5 additions and 0 deletions

View File

@ -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")