|
From: Florent R. <f.r...@fr...> - 2023-07-18 10:42:23
|
TheFGFSEagle <the...@gm...> wrote:
> Ah, so is there a switch to enable them ?
Build in Debug mode rather than RelWithDebInfo, otherwise:
if (MSVC)
# override CMake default RelWithDebInfo flags. This is important to ensure
# good performance
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/Zi /O2 /Ob2 /D NDEBUG")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "/Zi /O2 /Ob2 /D NDEBUG")
endif ()
(...)
if(CMAKE_COMPILER_IS_GNUCXX)
(...)
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG")
endif(CMAKE_COMPILER_IS_GNUCXX)
etc.
--
Florent
|