Open wangwalton opened 4 years ago
cmake accepts a BUILD_TYPE flag which determines whether the code is built in debug or release mode. If you want to make sure the code is compiled in debug mode run cmake from your build directory like this:
cmake .. -DCMAKE_BUILD_TYPE=Debug
for release mode:
cmake .. -DCMAKE_BUILD_TYPE=Release
edit: ninja'd
thanks for fast response! worked great.
Stackoverflow tells me this https://stackoverflow.com/questions/10005982/how-do-you-set-gdb-debug-flag-with-cmake