i think want to add specific compiler cxx flags to the release-mode. I read here in another thread that -O2 are good flags for release configuration
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall -O2")
but if i check now the CXX Flags
message(${CMAKE_CXX_FLAGS_RELEASE})
he write me
-O3 -DNDEBUG -Wall -O2
- Did it make sense using -02 instead of -03 ?
- How can i delete -03 from the Flags?
- What is DNDEBUG using for?
best regards