diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2018-04-15 19:47:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-04-18 11:41:44 (GMT) |
commit | 459739678443d2d2074d6e1475e4267c6c110e05 (patch) | |
tree | a459529081cee288524851b28cc491777b4c0ae7 /Modules/Platform | |
parent | e95b3fd9bbca94cb5f217847031c9c8f393aee78 (diff) | |
download | CMake-459739678443d2d2074d6e1475e4267c6c110e05.zip CMake-459739678443d2d2074d6e1475e4267c6c110e05.tar.gz CMake-459739678443d2d2074d6e1475e4267c6c110e05.tar.bz2 |
Apple: Use include_guard() within compiler config
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/Apple-Clang.cmake | 5 | ||||
-rw-r--r-- | Modules/Platform/Apple-GNU.cmake | 5 | ||||
-rw-r--r-- | Modules/Platform/Apple-Intel.cmake | 5 | ||||
-rw-r--r-- | Modules/Platform/Apple-PGI.cmake | 5 |
4 files changed, 4 insertions, 16 deletions
diff --git a/Modules/Platform/Apple-Clang.cmake b/Modules/Platform/Apple-Clang.cmake index 70fc75e..0681bfb 100644 --- a/Modules/Platform/Apple-Clang.cmake +++ b/Modules/Platform/Apple-Clang.cmake @@ -3,10 +3,7 @@ # This module is shared by multiple languages; use include blocker. -if(__APPLE_COMPILER_CLANG) - return() -endif() -set(__APPLE_COMPILER_CLANG 1) +include_guard() macro(__apple_compiler_clang lang) set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output diff --git a/Modules/Platform/Apple-GNU.cmake b/Modules/Platform/Apple-GNU.cmake index 9985ddd..0eb8168 100644 --- a/Modules/Platform/Apple-GNU.cmake +++ b/Modules/Platform/Apple-GNU.cmake @@ -3,10 +3,7 @@ # This module is shared by multiple languages; use include blocker. -if(__APPLE_COMPILER_GNU) - return() -endif() -set(__APPLE_COMPILER_GNU 1) +include_guard() macro(__apple_compiler_gnu lang) set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output diff --git a/Modules/Platform/Apple-Intel.cmake b/Modules/Platform/Apple-Intel.cmake index 9f92d95..2d4f7e5 100644 --- a/Modules/Platform/Apple-Intel.cmake +++ b/Modules/Platform/Apple-Intel.cmake @@ -3,10 +3,7 @@ # This module is shared by multiple languages; use include blocker. -if(__APPLE_COMPILER_INTEL) - return() -endif() -set(__APPLE_COMPILER_INTEL 1) +include_guard() macro(__apple_compiler_intel lang) set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output diff --git a/Modules/Platform/Apple-PGI.cmake b/Modules/Platform/Apple-PGI.cmake index a68c08d..8d343b7 100644 --- a/Modules/Platform/Apple-PGI.cmake +++ b/Modules/Platform/Apple-PGI.cmake @@ -2,10 +2,7 @@ # file Copyright.txt or https://cmake.org/licensing for details. # This module is shared by multiple languages; use include blocker. -if(__APPLE_COMPILER_PGI) - return() -endif() -set(__APPLE_COMPILER_PGI 1) +include_guard() macro(__apple_compiler_pgi lang) set(CMAKE_${lang}_OSX_COMPATIBILITY_VERSION_FLAG "-Wl,-compatibility_version,") |