Commit 5e04464b authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Update CXX flags

parent 09a026d2
Pipeline #100918 passed with stages
in 9 minutes and 46 seconds
......@@ -15,8 +15,8 @@ else()
return()
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${ZMQ_INCLUDE_DIR}" PARENT_SCOPE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${ZMQ_INCLUDE_DIR}" PARENT_SCOPE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${ZMQ_INCLUDE_DIR}" CACHE STRING "C++ flags" FORCE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${ZMQ_INCLUDE_DIR}" CACHE STRING "C++ flags" FORCE)
set(LIB_NAME "libzmq.so")
if(APPLE)
......@@ -34,8 +34,8 @@ else()
endif()
#link_directories(${ZMQ_LIBRARY_DIR})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L${ZMQ_LIBRARY_DIR}" PARENT_SCOPE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -L${ZMQ_LIBRARY_DIR}" PARENT_SCOPE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L${ZMQ_LIBRARY_DIR}" CACHE STRING "C++ flags" FORCE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -L${ZMQ_LIBRARY_DIR}" CACHE STRING "C++ flags" FORCE)
set(ZMQ_LIBRARY "zmq" CACHE STRING "name of the zmq library")
......
......@@ -32,9 +32,9 @@ function(phoenix_base_project programName programVersion programDescritpion prog
message(STATUS "Build for tests COVERAGE")
set(CTEST_COVERAGE_COMMAND "gcov")
set(SELF_TESTS_MODE yes)
set(CMAKE_CXX_FLAGS "--std=c++11 -Wall -Werror -g -O0 -fprofile-arcs -ftest-coverage" PARENT_SCOPE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11 -Wall -Werror -g -O0 -fprofile-arcs -ftest-coverage" PARENT_SCOPE)
else()
set(CMAKE_CXX_FLAGS "--std=c++11 -Wall -Werror -g -O2" PARENT_SCOPE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11 -Wall -Werror -g -O2" PARENT_SCOPE)
endif()
add_definitions(-D__PROGRAM_VERSION__="${PROGRAM_VERSION}")
......
Markdown is supported
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