Commit 5e556d53 authored by Brad King's avatar Brad King

Refactor CMake policy settings

Use a loop to avoid code duplication and comment the purpose of each
policy.

Change-Id: Id81c24868f89236dab3477034653e6a05321c696
parent 2a3f6f6b
......@@ -67,12 +67,14 @@
# written.
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3 FATAL_ERROR)
IF(POLICY CMP0025)
CMAKE_POLICY(SET CMP0025 NEW)
ENDIF()
IF(POLICY CMP0056)
CMAKE_POLICY(SET CMP0056 NEW)
ENDIF()
FOREACH(p
CMP0025 # CMake 3.0, Compiler id for Apple Clang is now AppleClang.
CMP0056 # CMake 3.2, Honor link flags in try_compile() source-file signature.
)
IF(POLICY ${p})
CMAKE_POLICY(SET ${p} NEW)
ENDIF()
ENDFOREACH()
SET(CMAKE_LEGACY_CYGWIN_WIN32 0)
#-----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment