diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt index 38332edf..e878a4d8 100644 --- a/server/CMakeLists.txt +++ b/server/CMakeLists.txt @@ -82,7 +82,9 @@ if(WIN32 AND MSVC) add_definitions(/MP) endif() -if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") +if (CMAKE_CXX_COMPILER_ID MATCHES "gcc") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0") + target_compile_options(${PROJECT_NAME} PRIVATE #-falign-functions #-faligned-allocation