diff options
author | Brad King <brad.king@kitware.com> | 2015-05-19 16:54:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-05-19 16:56:07 (GMT) |
commit | a4596f204822c91581ca69d513e0ed3638eee495 (patch) | |
tree | 5b1be1d7a7f972b81ab17a5c6c32e947ab3f69cc /Modules | |
parent | 6784f0a6eb21a3b6a0969aa08482ba7e3b23fa20 (diff) | |
download | CMake-a4596f204822c91581ca69d513e0ed3638eee495.zip CMake-a4596f204822c91581ca69d513e0ed3638eee495.tar.gz CMake-a4596f204822c91581ca69d513e0ed3638eee495.tar.bz2 |
CheckTypeSize: Do not use cmake_policy(VERSION)
Do not force a specific policy version in the module because it prevents
projects from setting newer policies to NEW. In particular, projects
may want to set CMP0056 to NEW to affect any try_compile calls in this
module.
Use of this was added in commit v2.8.2~539 (New CheckTypeSize for OS X
Universal Binaries, 2009-12-17) and updated in commit v3.1.0-rc1~511^2~1
(Do not change minimum required version in modules, 2014-05-07). The
history does not clearly explain why a specific policy version was
introduced. If specific policies need to be NEW then we can add
explicit settings for them.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CheckTypeSize.cmake | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/CheckTypeSize.cmake b/Modules/CheckTypeSize.cmake index 8c7acb5..5938d6c 100644 --- a/Modules/CheckTypeSize.cmake +++ b/Modules/CheckTypeSize.cmake @@ -82,7 +82,6 @@ include(CheckIncludeFile) include(CheckIncludeFileCXX) cmake_policy(PUSH) -cmake_policy(VERSION 3.0) cmake_policy(SET CMP0054 NEW) get_filename_component(__check_type_size_dir "${CMAKE_CURRENT_LIST_FILE}" PATH) |