Add explicit CMake check for compiler

This commit is contained in:
Jon Siwek 2011-03-09 11:48:00 -06:00
parent c94b13ad39
commit 9282e0adff
6 changed files with 16 additions and 6 deletions

View file

@ -1,4 +1,12 @@
project(Bro)
project(Bro 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

View file

@ -9,6 +9,8 @@ Prerequisites
Bro relies on the following libraries and tools, which need to be installed
before you begin:
* A C/C++ compiler
* Libpcap headers and libraries
Network traffic capture library
@ -35,7 +37,7 @@ before you begin:
though some platforms may require installation of a 'devel' package
for the headers.
* CMake 2.8 or greater
* CMake 2.6 or greater
CMake is a cross-platform, open-source build system, typically
not installed by default. See http://www.cmake.org for more
information regarding CMake and the installation steps below for

@ -1 +1 @@
Subproject commit 26d02716f9090651f319a4bfdf8ede49b3a7b53a
Subproject commit 6f7b080181d2e1e363c7d0806a5c2a1e4704f7da

@ -1 +1 @@
Subproject commit 7e50bac938af1831ecf9660159145a3c2e77e13d
Subproject commit bf913bd8514f4bfbfc3c87eb80b968d3b3689da4

@ -1 +1 @@
Subproject commit 9332ab3467191ac22be09d6941ebd469e7a334d0
Subproject commit dfb55c5f250660c846245f13c8dd87dd503e17a7

@ -1 +1 @@
Subproject commit 06b74a0f23767c8345ed146657120aba812f6764
Subproject commit 2e2b8197d9b105e10f07021004cd99c5aec5adaf