MinGW-w64 enable full optimization for C++ too
authorAntony Riakiotakis <kalast@gmail.com>
Tue, 24 Apr 2012 14:51:23 +0000 (14:51 +0000)
committerAntony Riakiotakis <kalast@gmail.com>
Tue, 24 Apr 2012 14:51:23 +0000 (14:51 +0000)
CMakeLists.txt

index 9250dae9ad8e58c0603e377e98751c7d6efd5080..ad3a293b937dd491098e771aae9c2bb3019eab20 100644 (file)
@@ -1010,6 +1010,7 @@ elseif(WIN32)
                        #Yes, the point for MinGW64 is moar optimization by default :)
                        set(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} -mmmx -msse -msse2")
                        set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG")
+                       set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
                        #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
                        set(PLATFORM_LINKLIBS "${PLATFORM_LINKLIBS} -lpthread")