1 2 3
if(NOT DEFINED ENV{CMAKE_add_test_ENVVAR}) message(FATAL_ERROR "Setting property on test did not succeed!") endif()