summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Configure/RemoveCache.cmake
blob: 304918f15c212c3cb1dd4dd9ce6a24b4ce89b619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
enable_language(C)

set(vars
  CMAKE_EXECUTABLE_FORMAT
  )

if(CMAKE_HOST_UNIX)
  list(APPEND vars
    CMAKE_UNAME
    )
endif()

foreach(v IN LISTS vars)
  if(NOT DEFINED ${v})
    message(SEND_ERROR "Variable '${v}' is not set!")
  endif()
endforeach()