mail[Wesnoth-commits] r44108 - /trunk/CMakeLists.txt


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on July 11, 2010 - 18:50:
Author: mordante
Date: Sun Jul 11 18:50:40 2010
New Revision: 44108

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44108&view=rev
Log:
Set the proper flags for the cmake RELEASE build.

Gabba discovered the problem and added a fix in r43834. This change has
a better suppression by turning unused variables to warnings instead of
error.

Modified:
    trunk/CMakeLists.txt

Modified: trunk/CMakeLists.txt
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/CMakeLists.txt?rev=44108&r1=44107&r2=44108&view=diff
==============================================================================
--- trunk/CMakeLists.txt (original)
+++ trunk/CMakeLists.txt Sun Jul 11 18:50:40 2010
@@ -118,11 +118,15 @@
                                CACHE STRING "Flags used by the C compiler 
during normal builds." FORCE)
                set(CMAKE_C_FLAGS_DEBUG "-O0 -DDEBUG -ggdb3 -W -Wall -ansi 
$ENV{CFLAGS}"
                                CACHE STRING "Flags used by the C compiler 
during debug builds." FORCE)
+               set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG -W -Wall -ansi 
$ENV{CFLAGS} -Wno-unused"
+                               CACHE STRING "Flags used by the C compiler 
during release builds." FORCE)
 
                set(CMAKE_CXX_FLAGS "-O2 -W -Wall -ansi ${STRICT_FLAGS} 
$ENV{CXXFLAGS}"
                                CACHE STRING "Flags used by the CXX compiler 
during normal builds." FORCE)
                set(CMAKE_CXX_FLAGS_DEBUG "-O0 -DDEBUG -ggdb3 -W -Wall -ansi 
${STRICT_FLAGS} $ENV{CXXFLAGS}"
                                CACHE STRING "Flags used by the CXX compiler 
during debug builds." FORCE)
+               set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG -W -Wall -ansi 
${STRICT_FLAGS} $ENV{CXXFLAGS} -Wno-unused"
+                               CACHE STRING "Flags used by the CXX compiler 
during release builds." FORCE)
 
        endif(NOT CONFIGURED)
 




Related Messages


Powered by MHonArc, Updated Sun Jul 11 19:00:09 2010