Created
October 24, 2021 20:48
-
-
Save scivision/fed99dae5582c0f2370bfe2ec368bbca to your computer and use it in GitHub Desktop.
CMake CTest ENVIRONMENT_MODIFICATION test property
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.22) | |
project(envPrint LANGUAGES NONE) | |
enable_testing() | |
add_test(NAME PrintEnv COMMAND ${CMAKE_COMMAND} -E environment) | |
set_tests_properties(PrintEnv PROPERTIES | |
ENVIRONMENT_MODIFICATION "NotExistingVar=path_list_prepend:WillSegfault") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Demos bug in CMake 3.22.0-rc1. Segfaults in Linux but not in Windows, but still doesn't work properly.