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

foreach(v
    CMAKE_CXX_COMPILER
    CMAKE_CXX_COMPILER_ID
    CMAKE_CXX_COMPILER_VERSION
    )
  if(${v})
    message(STATUS "${v}=[${${v}}]")
  else()
    message(SEND_ERROR "${v} not set!")
  endif()
endforeach()