diff options
author | Brad King <brad.king@kitware.com> | 2020-10-02 14:09:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-10-05 12:57:10 (GMT) |
commit | d77f8117cb3999469da3891ae91cc9389784681a (patch) | |
tree | 4b2c53a24460d3fb00459fe2e159fd79b4775473 /Tests/FindRuby/Rvm | |
parent | b1898bf97570b2887f7398105231ff72adb1564d (diff) | |
download | CMake-d77f8117cb3999469da3891ae91cc9389784681a.zip CMake-d77f8117cb3999469da3891ae91cc9389784681a.tar.gz CMake-d77f8117cb3999469da3891ae91cc9389784681a.tar.bz2 |
Tests: Improve FindRuby test robustness
Diffstat (limited to 'Tests/FindRuby/Rvm')
-rw-r--r-- | Tests/FindRuby/Rvm/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/FindRuby/Rvm/CMakeLists.txt b/Tests/FindRuby/Rvm/CMakeLists.txt index 545fc94..14bdbec 100644 --- a/Tests/FindRuby/Rvm/CMakeLists.txt +++ b/Tests/FindRuby/Rvm/CMakeLists.txt @@ -23,7 +23,7 @@ if (result) message (FATAL_ERROR "Unable to detect RVM ruby version from `${MY_RUBY_HOME}/bin/ruby`: ${RVM_RUBY_VERSION}") endif() -execute_process(COMMAND "${CMAKE_COMMAND}" -E env --unset=MY_RUBY_HOME --unset=PATH +execute_process(COMMAND "${CMAKE_COMMAND}" -E env --unset=MY_RUBY_HOME PATH=/usr/bin:/bin "which" "ruby" RESULT_VARIABLE result OUTPUT_VARIABLE SYSTEM_RUBY |