summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Apple-GNU.cmake
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2018-04-15 19:47:10 (GMT)
committerBrad King <brad.king@kitware.com>2018-04-18 11:41:44 (GMT)
commit459739678443d2d2074d6e1475e4267c6c110e05 (patch)
treea459529081cee288524851b28cc491777b4c0ae7 /Modules/Platform/Apple-GNU.cmake
parente95b3fd9bbca94cb5f217847031c9c8f393aee78 (diff)
downloadCMake-459739678443d2d2074d6e1475e4267c6c110e05.zip
CMake-459739678443d2d2074d6e1475e4267c6c110e05.tar.gz
CMake-459739678443d2d2074d6e1475e4267c6c110e05.tar.bz2
Apple: Use include_guard() within compiler config
Diffstat (limited to 'Modules/Platform/Apple-GNU.cmake')
-rw-r--r--Modules/Platform/Apple-GNU.cmake5
1 files changed, 1 insertions, 4 deletions
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