CMake/Tests/RunCMake/CommandLine/E_env-set.cmake

6 lines
190 B
CMake

if(DEFINED ENV{TEST_ENV})
message(STATUS "TEST_ENV is correctly set in environment: $ENV{TEST_ENV}")
else()
message(FATAL_ERROR "TEST_ENV is incorrectly not set in environment")
endif()