From ceba94eb0bfc4c6595f550c7371ecea9aae940ec Mon Sep 17 00:00:00 2001 From: Bernd Wachter Date: Tue, 26 Jan 2010 09:46:17 +0100 Subject: Enclose -Wall option in g++ check, remove -g flag --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a7fc894..f98e9f61 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,8 +11,10 @@ SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/Modules) FIND_PACKAGE(Gettext) -# Help getting compilation warnings -set(CMAKE_CXX_FLAGS "-g -Wall") +IF (CMAKE_COMPILER_IS_GNUCXX) + # Help getting compilation warnings + SET(CMAKE_CXX_FLAGS "-Wall") +ENDIF() OPTION(WITH_OPENGL "Enable OpenGL support" ON) OPTION(ENABLE_NLS "Enable building of tranlations" ON) -- cgit v1.2.3-70-g09d2