diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-12-15 19:29:28 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-03-31 18:03:43 +0000 |
commit | f24d87987a2bb9e646ca6e1c49c7573f972ab647 (patch) | |
tree | 3ad6da5cee0d1bebbc605d7107d91d52f493b380 /coin | |
parent | 8294fa4c35b97b54e5f2cc74d6c990db951ee121 (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.
Change-Id: Id67b287a2d9f67889dcc5c4fc7781d9ef60a56be
Reviewed-by: Toni Saario <toni.saario@qt.io>
(cherry picked from commit 8e4ef10c388c4ec611b8fce0217b70a88028c342)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
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 7a4ea06fe2..b822cbbfa9 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 |