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. # This module is shared by multiple languages; use include blocker.
if(__APPLE_COMPILER_CLANG) include_guard()
return()
endif()
set(__APPLE_COMPILER_CLANG 1)
macro(__apple_compiler_clang lang) macro(__apple_compiler_clang lang)
set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output 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. # This module is shared by multiple languages; use include blocker.
if(__APPLE_COMPILER_GNU) include_guard()
return()
endif()
set(__APPLE_COMPILER_GNU 1)
macro(__apple_compiler_gnu lang) macro(__apple_compiler_gnu lang)
set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output 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. # This module is shared by multiple languages; use include blocker.
if(__APPLE_COMPILER_INTEL) include_guard()
return()
endif()
set(__APPLE_COMPILER_INTEL 1)
macro(__apple_compiler_intel lang) macro(__apple_compiler_intel lang)
set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output 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. # file Copyright.txt or https://cmake.org/licensing for details.
# This module is shared by multiple languages; use include blocker. # This module is shared by multiple languages; use include blocker.
if(__APPLE_COMPILER_PGI) include_guard()
return()
endif()
set(__APPLE_COMPILER_PGI 1)
macro(__apple_compiler_pgi lang) macro(__apple_compiler_pgi lang)
set(CMAKE_${lang}_OSX_COMPATIBILITY_VERSION_FLAG "-Wl,-compatibility_version,") set(CMAKE_${lang}_OSX_COMPATIBILITY_VERSION_FLAG "-Wl,-compatibility_version,")