1 if (NOT DEFINED ENV{TEST_ENV_EXPECTED})
2 if (NOT DEFINED ENV{TEST_ENV})
3 message(STATUS "TEST_ENV is correctly not set in environment")
5 message(FATAL_ERROR "TEST_ENV is incorrectly set in environment")
8 if (NOT DEFINED ENV{TEST_ENV})
9 message(FATAL_ERROR "TEST_ENV is incorrectly not set in environment")
10 elseif ("$ENV{TEST_ENV}" STREQUAL "$ENV{TEST_ENV_EXPECTED}")
11 message(STATUS "TEST_ENV is correctly set in environment: $ENV{TEST_ENV}")
13 message(FATAL_ERROR "TEST_ENV is incorrectly set in environment!\n\tactual: $ENV{TEST_ENV}\n\texpected: $ENV{TEST_ENV_EXPECTED}")