diff options
author | Brad King <brad.king@kitware.com> | 2015-12-09 13:36:53 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-12-09 13:36:53 (GMT) |
commit | ad1be6ee769ecaba4d6dadae84c0fc372049a333 (patch) | |
tree | 0598d967da72368d8ebe34537fed41937719f9da /Modules/CMakeCXXInformation.cmake | |
parent | 27ed820c816a80bf140613cb2f47ccb2f21b021f (diff) | |
parent | a7ef02253bf8ef33d4ffdd761802ea30ef289b8a (diff) | |
download | CMake-ad1be6ee769ecaba4d6dadae84c0fc372049a333.zip CMake-ad1be6ee769ecaba4d6dadae84c0fc372049a333.tar.gz CMake-ad1be6ee769ecaba4d6dadae84c0fc372049a333.tar.bz2 |
Merge topic 'detect-cray-wrappers'
a7ef0225 Cray: Refactor the Cray platform files to use compiler wrapper checks
0763a836 Cray: Add macro tests to detect the Cray compiler wrappers
5eaac0c9 Compiler: Add infrastructure for detecting compiler wrappers
Diffstat (limited to 'Modules/CMakeCXXInformation.cmake')
-rw-r--r-- | Modules/CMakeCXXInformation.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/CMakeCXXInformation.cmake b/Modules/CMakeCXXInformation.cmake index 091627b..b35280f 100644 --- a/Modules/CMakeCXXInformation.cmake +++ b/Modules/CMakeCXXInformation.cmake @@ -18,6 +18,8 @@ # It also loads a system - compiler - processor (or target hardware) # specific file, which is mainly useful for crosscompiling and embedded systems. +include(CMakeLanguageInformation) + # some compilers use different extensions (e.g. sdcc uses .rel) # so set the extension here first so it can be overridden by the compiler specific file if(UNIX) @@ -59,6 +61,12 @@ if (NOT _INCLUDED_FILE) include(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE) endif () + +# load any compiler-wrapper specific information +if (CMAKE_CXX_COMPILER_WRAPPER) + __cmake_include_compiler_wrapper(CXX) +endif () + # We specify the compiler information in the system file for some # platforms, but this language may not have been enabled when the file # was first included. Include it again to get the language info. |