summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/CrayPrgEnv-C.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-12-09 13:36:53 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-12-09 13:36:53 (GMT)
commitad1be6ee769ecaba4d6dadae84c0fc372049a333 (patch)
tree0598d967da72368d8ebe34537fed41937719f9da /Modules/Compiler/CrayPrgEnv-C.cmake
parent27ed820c816a80bf140613cb2f47ccb2f21b021f (diff)
parenta7ef02253bf8ef33d4ffdd761802ea30ef289b8a (diff)
downloadCMake-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/Compiler/CrayPrgEnv-C.cmake')
-rw-r--r--Modules/Compiler/CrayPrgEnv-C.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Modules/Compiler/CrayPrgEnv-C.cmake b/Modules/Compiler/CrayPrgEnv-C.cmake
new file mode 100644
index 0000000..6b461ce
--- /dev/null
+++ b/Modules/Compiler/CrayPrgEnv-C.cmake
@@ -0,0 +1,11 @@
+if(__craylinux_crayprgenv_c)
+ return()
+endif()
+set(__craylinux_crayprgenv_c 1)
+
+include(Compiler/CrayPrgEnv)
+macro(__CrayPrgEnv_setup_C compiler_cmd link_cmd)
+ __CrayPrgEnv_setup(C
+ ${CMAKE_ROOT}/Modules/CMakeCCompilerABI.c
+ ${compiler_cmd} ${link_cmd})
+endmacro()