diff options
-rw-r--r-- | README | 3 | ||||
-rw-r--r-- | coin/instructions/set_cmake_c_cxx_compiler.yaml | 30 |
2 files changed, 32 insertions, 1 deletions
@@ -1,5 +1,6 @@ This repository contains much of the configuration which defines what Pulse -projects do. +projects do and some Coin shared code. Below you will find documentation +only for the first one. HOW IT WORKS: diff --git a/coin/instructions/set_cmake_c_cxx_compiler.yaml b/coin/instructions/set_cmake_c_cxx_compiler.yaml new file mode 100644 index 00000000..d5c52d89 --- /dev/null +++ b/coin/instructions/set_cmake_c_cxx_compiler.yaml @@ -0,0 +1,30 @@ +type: Group +instructions: + - type: PrependToEnvironmentVariable + variableName: CONFIGURE_ARGS + variableValue: "-DCMAKE_C_COMPILER=icc -DCMAKE_CXX_COMPILER=icpc " + enable_if: + condition: property + property: host.compiler + contains_value: ICC + - type: PrependToEnvironmentVariable + variableName: CONFIGURE_ARGS + variableValue: "-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ " + enable_if: + condition: property + property: host.compiler + contains_value: GCC + - type: PrependToEnvironmentVariable + variableName: CONFIGURE_ARGS + variableValue: "-DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe " + enable_if: + condition: property + property: host.compiler + contains_value: MSVC + - type: PrependToEnvironmentVariable + variableName: CONFIGURE_ARGS + variableValue: "-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ " + enable_if: + condition: property + property: host.compiler + contains_value: Clang |