stop with an error if COMPILER is unknown

Defaulting to g++ probably wasn't the wisest choice.

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1006 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hsc
2012-03-21 18:05:49 +00:00
parent fe58ee3df1
commit 5ac66d4f15

View File

@ -23,9 +23,7 @@ elseif(${COMPILER} STREQUAL "ag++")
add_definitions("-p ${CMAKE_SOURCE_DIR} --real-instances --Xcompiler" ) add_definitions("-p ${CMAKE_SOURCE_DIR} --real-instances --Xcompiler" )
else(${COMPILER} STREQUAL "clang") else(${COMPILER} STREQUAL "clang")
set(CMAKE_C_COMPILER "gcc") message(FATAL_ERROR "COMPILER must be exactly one of clang/gcc/ag++. If unsure, use 'ag++'.")
set(CMAKE_CXX_COMPILER "g++")
endif(${COMPILER} STREQUAL "clang") endif(${COMPILER} STREQUAL "clang")
message(STATUS "[${PROJECT_NAME}] Compiler: ${CMAKE_C_COMPILER}/${CMAKE_CXX_COMPILER}" ) message(STATUS "[${PROJECT_NAME}] Compiler: ${CMAKE_C_COMPILER}/${CMAKE_CXX_COMPILER}" )