diff options
author | Brad King <brad.king@kitware.com> | 2016-11-29 16:49:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-29 16:49:34 (GMT) |
commit | 8bced8b18de592b572eb5766c7d36d76ea789d09 (patch) | |
tree | 7527fa4a0f969becbd8c78c445c9cc26033c4a7d /Source/kwsys/CMakeLists.txt | |
parent | 44c978a2dab96b44ed2dd7470f532c4aa4c7da7c (diff) | |
parent | cd5cff13370f6953497484f6e4b04f957fe9c9a7 (diff) | |
download | CMake-8bced8b18de592b572eb5766c7d36d76ea789d09.zip CMake-8bced8b18de592b572eb5766c7d36d76ea789d09.tar.gz CMake-8bced8b18de592b572eb5766c7d36d76ea789d09.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys:
KWSys 2016-11-28 (1c7c2139)
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r-- | Source/kwsys/CMakeLists.txt | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index a2d313c..b8a9a6b 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -67,12 +67,15 @@ # 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. + CMP0063 # CMake 3.3, Honor visibility properties for all target types. + ) + IF(POLICY ${p}) + CMAKE_POLICY(SET ${p} NEW) + ENDIF() +ENDFOREACH() SET(CMAKE_LEGACY_CYGWIN_WIN32 0) #----------------------------------------------------------------------------- |