summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeOnly/CompilerIdC/CMakeLists.txt
blob: 848ffdd36c36d52f442a5f6460148002c8193db5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
cmake_minimum_required(VERSION 2.8.9)
project(CompilerIdC C)

foreach(v
    CMAKE_C_COMPILER
    CMAKE_C_COMPILER_ID
    CMAKE_C_COMPILER_VERSION
    )
  if(${v})
    message(STATUS "${v}=[${${v}}]")
  else()
    message(SEND_ERROR "${v} not set!")
  endif()
endforeach()