mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
a7ef02253b
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.
12 lines
285 B
CMake
12 lines
285 B
CMake
if(__craylinux_crayprgenv_cxx)
|
|
return()
|
|
endif()
|
|
set(__craylinux_crayprgenv_cxx 1)
|
|
|
|
include(Compiler/CrayPrgEnv)
|
|
macro(__CrayPrgEnv_setup_CXX compiler_cmd link_cmd)
|
|
__CrayPrgEnv_setup(CXX
|
|
${CMAKE_ROOT}/Modules/CMakeCXXCompilerABI.cpp
|
|
${compiler_cmd} ${link_cmd})
|
|
endmacro()
|