File: CheckCompilers.cmake

package info (click to toggle)
broccoli-python 0.61%2B1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 456 kB
  • sloc: python: 407; sh: 200; makefile: 21
file content (11 lines) | stat: -rw-r--r-- 440 bytes parent folder | download | duplicates (23)
1
2
3
4
5
6
7
8
9
10
11
# Aborts the configuration if no C or C++ compiler is found, depending
# on whether a previous call to the project() macro was supplied either
# language as a requirement.

if (NOT CMAKE_C_COMPILER AND DEFINED CMAKE_C_COMPILER)
    message(FATAL_ERROR "Could not find prerequisite C compiler")
endif ()

if (NOT CMAKE_CXX_COMPILER AND DEFINED CMAKE_CXX_COMPILER)
    message(FATAL_ERROR "Could not find prerequisite C++ compiler")
endif ()