Apple: Use include_guard() within compiler config

This commit is contained in:
Gregor Jasny 2018-04-15 21:47:10 +02:00 committed by Brad King
parent e95b3fd9bb
commit 4597396784
4 changed files with 4 additions and 16 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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,")