equal
deleted
inserted
replaced
209 endif (CMAKE_BUILD_TYPE) |
209 endif (CMAKE_BUILD_TYPE) |
210 |
210 |
211 |
211 |
212 #set default flags values for all projects (unless MINIMAL_FLAGS is true) |
212 #set default flags values for all projects (unless MINIMAL_FLAGS is true) |
213 if(NOT ${MINIMAL_FLAGS}) |
213 if(NOT ${MINIMAL_FLAGS}) |
|
214 if(WINDOWS) |
|
215 #this flags prevents a few dll hell problems |
|
216 set(CMAKE_C_FLAGS "-static-libgcc ${CMAKE_C_FLAGS}") |
|
217 endif(WINDOWS) |
214 set(CMAKE_C_FLAGS "-pipe ${CMAKE_C_FLAGS}") |
218 set(CMAKE_C_FLAGS "-pipe ${CMAKE_C_FLAGS}") |
215 set(CMAKE_C_FLAGS_RELEASE "-w -Os -fomit-frame-pointer ${CMAKE_C_FLAGS_RELEASE}") |
219 set(CMAKE_C_FLAGS_RELEASE "-w -Os -fomit-frame-pointer ${CMAKE_C_FLAGS_RELEASE}") |
216 set(CMAKE_C_FLAGS_DEBUG "-Wall -O0 -g -DDEBUG ${CMAKE_C_FLAGS_DEBUG}") |
220 set(CMAKE_C_FLAGS_DEBUG "-Wall -O0 -g -DDEBUG ${CMAKE_C_FLAGS_DEBUG}") |
217 set(CMAKE_CXX_FLAGS ${CMAKE_C_FLAGS}) |
221 set(CMAKE_CXX_FLAGS ${CMAKE_C_FLAGS}) |
218 set(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE}) |
222 set(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE}) |