Commit 22628c6f authored by Marco Clemencic's avatar Marco Clemencic
Browse files

fixed problem with the changed C++ flags

parent ef3595ec
......@@ -2,6 +2,9 @@ depends_on_subdirs(GaudiKernel)
find_package(Boost COMPONENTS system filesystem regex thread)
# Boost Spirit (1.48) gives a compilation error (extra ';') when -pedantic is used
string(REPLACE "-pedantic" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
#---Libraries---------------------------------------------------------------
gaudi_add_module(GaudiCoreSvc
ApplicationMgr/*.cpp
......
......@@ -40,8 +40,8 @@ if(MSVC90)
else()
set(CMAKE_CXX_FLAGS "-Dunix -pipe -ansi -Wall -Wextra -Werror=return-type -pthread -Wno-deprecated -Wno-empty-body -pedantic -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -Wno-long-long")
if(GAUDI_CMT_RELEASE)
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
set(CMAKE_C_FLAGS_RELEASE "-O2")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG")
endif()
add_definitions(-D_GNU_SOURCE)
endif()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment