blob: 3dfb88fb6fd4b7e7b5af6e6e10a091765135e660 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
From: Julian Ospald <hasufell@gentoo.org>
Date: Wed May 16 12:30:18 UTC 2012
respect CXXFLAGS
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -204,7 +204,7 @@
set (CMAKE_CXX_FLAGS_DEBUG "-g -DDEBUG -DNOPARACHUTE${WL_COMPILERFLAG_OLDSTYLECAST}${WL_COMPILERFLAG_GENERICWARNINGS}${WL_COMPILERFLAG_EXTRAWARNINGS}${WL_COMPILERFLAG_STRICT}" CACHE STRING "Set by widelands CMakeLists.txt" FORCE)
# CMAKE defines "-O3 -DNDEBUG", but we better say -O2 (see gcc manual)
-set (CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG" CACHE STRING "Set by widelands CMakeLists.txt" FORCE)
+set (CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG" CACHE STRING "Set by widelands CMakeLists.txt" FORCE)
#If building with MSVC, then check for 3rdparty libs
if (DEFINED MSVC)
|