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

6 lines
174 B
CMake

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