Browse Source

activate policies

master
Sascha Kratky 10 years ago
parent
commit
bfc32c57ef
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      CMake/cotire.cmake

+ 10
- 0
CMake/cotire.cmake View File

@@ -47,6 +47,16 @@ set (COTIRE_CMAKE_MODULE_VERSION "1.7.4")
set (COTIRE_CMAKE_MODULE_VERSION "1.7.5") set (COTIRE_CMAKE_MODULE_VERSION "1.7.5")


# activate select policies # 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) if (POLICY CMP0038)
# targets may not link directly to themselves # targets may not link directly to themselves
cmake_policy(SET CMP0038 NEW) cmake_policy(SET CMP0038 NEW)


Loading…
Cancel
Save