I have tried setting the debug flags using the
set
command in cmake but I cam unsure what to add. I have been told things like
cmake
If you want to build for debug (including source information, i.e. -g) when compiling, use
cmake -DCMAKE_BUILD_TYPE=Debug
If you want to build a release build, you can use
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo