summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/hscript-simulate/CMakeLists.txt2
-rw-r--r--tools/hscript-validate/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/hscript-simulate/CMakeLists.txt b/tools/hscript-simulate/CMakeLists.txt
index 45e8d95..ddd7eed 100644
--- a/tools/hscript-simulate/CMakeLists.txt
+++ b/tools/hscript-simulate/CMakeLists.txt
@@ -11,7 +11,7 @@ add_test(NAME "RSpecSimulator"
COMMAND ${RSPEC_EXECUTABLE} spec/simulator_spec.rb
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests)
set_property(TEST "RSpecSimulator"
- PROPERTY ENVIRONMENT "PATH=$PATH:${CMAKE_CURRENT_BINARY_DIR}")
+ PROPERTY ENVIRONMENT "PATH=$ENV{PATH}:${CMAKE_CURRENT_BINARY_DIR}")
ENDIF(RSPEC_EXECUTABLE)
IF(VALGRIND)
diff --git a/tools/hscript-validate/CMakeLists.txt b/tools/hscript-validate/CMakeLists.txt
index f8b579a..2f0b5a4 100644
--- a/tools/hscript-validate/CMakeLists.txt
+++ b/tools/hscript-validate/CMakeLists.txt
@@ -11,7 +11,7 @@ add_test(NAME "RSpecValidator"
COMMAND ${RSPEC_EXECUTABLE} spec/validator_spec.rb
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests)
set_property(TEST "RSpecValidator"
- PROPERTY ENVIRONMENT "PATH=$PATH:${CMAKE_CURRENT_BINARY_DIR}")
+ PROPERTY ENVIRONMENT "PATH=$ENV{PATH}:${CMAKE_CURRENT_BINARY_DIR}")
ENDIF(RSPEC_EXECUTABLE)
IF(VALGRIND)