← Back to team overview

kicad-developers team mailing list archive

Re: gcc 4.7.x and optimization flags

 

There was an extra 1 in there.

Maybe it was needed for achieving "one-ness" with the universe, but I did not think so and
removed it.

Seems ok now.  See attached change that I made.


Dick


=== modified file 'CMakeLists.txt'
--- CMakeLists.txt	2012-10-16 01:42:50 +0000
+++ CMakeLists.txt	2012-10-16 05:25:44 +0000
@@ -148,8 +148,8 @@
         set(CMAKE_CXX_FLAGS_DEBUG "-Wall ${KICAD_GCC_DEBUG_BUILD_FLAGS} -g3 -ggdb3 -DDEBUG")
     else(WIN32)
         # Set default flags for Release build.
-        set(CMAKE_C_FLAGS_RELEASE "-Wall ${KICAD_GCC_RELEASE_BUILD_FLAGS}1 -DNDEBUG -fPIC")
-        set(CMAKE_CXX_FLAGS_RELEASE "-Wall ${KICAD_GCC_RELEASE_BUILD_FLAGS}1 -DNDEBUG -fPIC")
+        set(CMAKE_C_FLAGS_RELEASE "-Wall ${KICAD_GCC_RELEASE_BUILD_FLAGS} -DNDEBUG -fPIC")
+        set(CMAKE_CXX_FLAGS_RELEASE "-Wall ${KICAD_GCC_RELEASE_BUILD_FLAGS} -DNDEBUG -fPIC")
         set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-s")
 
         # Set default flags for Debug build.


Follow ups

References