0

hi ino t expert with cmake and i would like to be able to compile with -g flag ( the debug symbols) to be able to use gdb as debbuger, but i dont know how to activate -g flag, or where i have to put: set(CMAKE_CXX_FLAGS_DEBUG_INIT "-Wall -g") set(CMAKE_BUILD_TYPE "Debug") thanks in advance

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.