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/Apple-PGI.cmake | |
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/Apple-PGI.cmake')
-rw-r--r-- | Modules/Platform/Apple-PGI.cmake | 5 |
1 files changed, 1 insertions, 4 deletions
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,") |