summaryrefslogtreecommitdiff
path: root/Modules/Compiler/CrayPrgEnv-PGI-CXX.cmake
diff options
context:
space:
mode:
authorChuck Atkins <chuck.atkins@kitware.com>2015-12-02 10:00:44 -0600
committerBrad King <brad.king@kitware.com>2015-12-09 08:35:19 -0500
commita7ef02253bf8ef33d4ffdd761802ea30ef289b8a (patch)
treea1029eb1d5bec221148e3bb7341994599ac91aaf /Modules/Compiler/CrayPrgEnv-PGI-CXX.cmake
parent0763a8365528166747746e3b94e74ca98d0d705f (diff)
downloadcmake-a7ef02253bf8ef33d4ffdd761802ea30ef289b8a.tar.gz
Cray: Refactor the Cray platform files to use compiler wrapper checks
This is an extensive refactoring of the Cray compiler wrapper usage. Using the new compiler wrapper checks, the CrayPrgEnv info files have been moved from Platform/ to Compiler/. The adjusted naming convention allows the compiler-wrapper information files to be loaded for both the CrayLinuxEnvironment platform when cross-compiling and the Linux platform if building natively on the Cray compute nodes. It also creates a separation of common arguments for compiler id and language information used to perform the appropriate introspection of implicit arguments and libraries used by the compiler wrappers based on the loaded module environment.
Diffstat (limited to 'Modules/Compiler/CrayPrgEnv-PGI-CXX.cmake')
-rw-r--r--Modules/Compiler/CrayPrgEnv-PGI-CXX.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/Compiler/CrayPrgEnv-PGI-CXX.cmake b/Modules/Compiler/CrayPrgEnv-PGI-CXX.cmake
new file mode 100644
index 0000000000..a2a286f8c3
--- /dev/null
+++ b/Modules/Compiler/CrayPrgEnv-PGI-CXX.cmake
@@ -0,0 +1,7 @@
+if(__craylinux_crayprgenv_pgi_cxx)
+ return()
+endif()
+set(__craylinux_crayprgenv_pgi_cxx 1)
+
+include(Compiler/CrayPrgEnv-CXX)
+__CrayPrgEnv_setup_CXX("/opt/pgi/[^ ]*/pgcpp" "/usr/bin/ld")