binpac: Add explicit CMake check for compiler

This commit is contained in:
Jon Siwek 2011-03-09 11:47:28 -06:00 committed by Tim Wojtulewicz
parent 1a15b968e6
commit e7e2ee38e7

View file

@ -1,4 +1,12 @@
project(BinPAC) project(BinPAC C CXX)
if (NOT CMAKE_C_COMPILER)
message(FATAL_ERROR "Could not find prerequisite C compiler")
endif ()
if (NOT CMAKE_CXX_COMPILER)
message(FATAL_ERROR "Could not find prerequisite C++ compiler")
endif ()
######################################################################## ########################################################################
## CMake Configuration ## CMake Configuration