You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Tests/RunCMake/ctest_environment/ENVIRONMENT_MODIFICATION-re...

10 lines
321 B

include(CTest)
add_test(NAME cmake_environment COMMAND "${CMAKE_COMMAND}" -E environment)
set_tests_properties(
cmake_environment
PROPERTIES
# ENVIRONMENT "CTEST_TEST_VAR=set-via-ENVIRONMENT-property"
ENVIRONMENT_MODIFICATION "CTEST_TEST_VAR=set:set-via-ENVIRONMENT_MODIFICATION;CTEST_TEST_VAR=reset:"
)