diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-12-15 19:29:28 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-03-30 21:03:47 +0200 |
commit | 8e4ef10c388c4ec611b8fce0217b70a88028c342 (patch) | |
tree | 39cbacb633e8d2188874b3d95a4049c5b0db7adb /coin | |
parent | d1d96a3cdd85c471f52c8a48c7e4441eb252f20f (diff) |
coin: Add CI_PATH_SEP env var with value of host OS path separator
Can be useful in the future for path construction, to avoid adding
two different instructions where the only difference is the path
style.
Pick-to: 6.2 6.3
Change-Id: Id67b287a2d9f67889dcc5c4fc7781d9ef60a56be
Reviewed-by: Toni Saario <toni.saario@qt.io>
Diffstat (limited to 'coin')
-rw-r--r-- | coin/instructions/prepare_building_env.yaml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/coin/instructions/prepare_building_env.yaml b/coin/instructions/prepare_building_env.yaml index 7909f52759..9587b48a2e 100644 --- a/coin/instructions/prepare_building_env.yaml +++ b/coin/instructions/prepare_building_env.yaml @@ -8,6 +8,24 @@ instructions: variableName: CMAKE_GENERATOR variableValue: Ninja + # Set path separator based on host platform. + # \ on Windows (double \\ for escaping the backslash) + # / on UNIX + - type: EnvironmentVariable + variableName: CI_PATH_SEP + variableValue: "\\" + enable_if: + condition: property + property: host.os + equals_value: Windows + - type: EnvironmentVariable + variableName: CI_PATH_SEP + variableValue: "/" + disable_if: + condition: property + property: host.os + equals_value: Windows + # Export ICC specific env. variables - type: Group |