mirror of
https://github.com/pevans/erc-c.git
synced 2024-12-21 08:30:55 +00:00
Add -O3 optimization
Also add debugging symbols in the unit test version (which we didn't have???)
This commit is contained in:
parent
47bbed1399
commit
68f9daf6ac
@ -5,7 +5,7 @@ project(erc)
|
||||
|
||||
include(sources.cmake)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O3")
|
||||
set(CMAKE_COLOR_MAKEFILE OFF)
|
||||
|
||||
if(DEFINED ENV{STATIC_ANALYSIS})
|
||||
|
@ -8,7 +8,7 @@ set(CMAKE_COLOR_MAKEFILE OFF)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHEADLESS -DTESTING")
|
||||
|
||||
if(DEFINED ENV{STATIC_ANALYSIS})
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --analyze")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --analyze -g -O3")
|
||||
endif()
|
||||
|
||||
if(CMAKE_C_FLAGS MATCHES "--analyze")
|
||||
|
Loading…
Reference in New Issue
Block a user