From e7e2ee38e75ea3cf5a835aee9c01f397775c6cdd Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Wed, 9 Mar 2011 11:47:28 -0600 Subject: [PATCH] binpac: Add explicit CMake check for compiler --- tools/binpac/CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/binpac/CMakeLists.txt b/tools/binpac/CMakeLists.txt index 09cc538e5e..3f7ee54de1 100644 --- a/tools/binpac/CMakeLists.txt +++ b/tools/binpac/CMakeLists.txt @@ -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