From bfc32c57ef0da4970751070ae30cdc85b0ef9781 Mon Sep 17 00:00:00 2001 From: Sascha Kratky Date: Thu, 22 Oct 2015 20:42:00 +0200 Subject: [PATCH] activate policies --- CMake/cotire.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMake/cotire.cmake b/CMake/cotire.cmake index bb11c4a..8dcb482 100644 --- a/CMake/cotire.cmake +++ b/CMake/cotire.cmake @@ -47,6 +47,16 @@ set (COTIRE_CMAKE_MODULE_VERSION "1.7.4") set (COTIRE_CMAKE_MODULE_VERSION "1.7.5") # activate select policies +if (POLICY CMP0025) + # Compiler id for Apple Clang is now AppleClang + cmake_policy(SET CMP0025 NEW) +endif() + +if (POLICY CMP0026) + # disallow use of the LOCATION target property + cmake_policy(SET CMP0026 NEW) +endif() + if (POLICY CMP0038) # targets may not link directly to themselves cmake_policy(SET CMP0038 NEW)