summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0132/CMP0132-Common.cmake
blob: 796f61c6893fc54f40fc4e2fbf05904c4456a082 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if(NOT "$ENV{CC}" STREQUAL "")
  message(STATUS "Test environment already sets CC, test being SKIPPED")
  return()
elseif(CMAKE_GENERATOR MATCHES "Xcode|Visual Studio")
  message(STATUS "This generator never sets CC, test being SKIPPED")
  return()
endif()

enable_language(C)

if("$ENV{CC}" STREQUAL "")
  message(STATUS "CC was left unset")
else()
  message(STATUS "CC was set to $ENV{CC}")
endif()