diff options
author | Brad King <brad.king@kitware.com> | 2019-03-11 10:43:38 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-03-11 11:37:52 -0400 |
commit | 21da25d2a878cfccf9496ef7b227de2c98601ef2 (patch) | |
tree | aae2a5864971ae102d51b0f4a2a3eecd222a2b35 /Tests/GeneratorExpression/check-part4.cmake | |
parent | d1558fbf3ab770b8691a8548a297d1c48fe666eb (diff) | |
download | cmake-21da25d2a878cfccf9496ef7b227de2c98601ef2.tar.gz |
Tests: Generalize GeneratorExpression MSYS path conversion workaround
Use MSYS2's `MSYS2_ARG_CONV_EXCL` environment variable to prevent
path conversion where possible.
Diffstat (limited to 'Tests/GeneratorExpression/check-part4.cmake')
-rw-r--r-- | Tests/GeneratorExpression/check-part4.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/GeneratorExpression/check-part4.cmake b/Tests/GeneratorExpression/check-part4.cmake index f5d14dd456..b6966de217 100644 --- a/Tests/GeneratorExpression/check-part4.cmake +++ b/Tests/GeneratorExpression/check-part4.cmake @@ -1,6 +1,8 @@ include(${CMAKE_CURRENT_LIST_DIR}/check-common.cmake) -string(REPLACE ${path_prefix} "" test_shell_path ${test_shell_path}) +if(msys1_prefix) + string(REPLACE "${msys1_prefix}" "" test_shell_path ${test_shell_path}) +endif() if(WIN32) if(CMAKE_GENERATOR STREQUAL "MSYS Makefiles") |