aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclick <none@none>2010-06-13 17:36:05 +0200
committerclick <none@none>2010-06-13 17:36:05 +0200
commit5c8ccefef5345fc76144d3451bee8def530eac88 (patch)
tree85b1735487766c5c8bdccd5e6386815e9345f914
parentad8638742cede5e3d34c8ac8c55b7b7534864819 (diff)
Remove duplicate DO_WARN conditional in toplevel CMakeLists.txt (thanks to imbecile for spotting)
--HG-- branch : trunk
-rw-r--r--CMakeLists.txt6
1 files changed, 1 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2c7c90224a5..f201ff75285 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -165,6 +165,7 @@ if(DO_WARN)
add_definitions(-Wall -Wfatal-errors -Wextra)
else(DO_WARN)
message("* Show compile-warnings : No (default)")
+ add_definitions(--no-warnings) # makes build look nice, no warnings shown at all, only errors
endif(DO_WARN)
if(DO_SQL)
@@ -225,11 +226,6 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
add_definitions(-D__ASSERTMACROS__)
endif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
-if(DO_WARN)
-else(DO_WARN)
- add_definitions(--no-warnings) # makes build look nice, no warnings shown at all, only errors
-endif(DO_WARN)
-
set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")