调试cmake_使⽤cmake启⽤调试
调试 cmake
How to enable debugging with ?
如何使⽤启⽤调试?
If we use cmake to build the , we may want to enabling the debuging mode that cmake invoke gcc with the -g so that we can the compiled program with gdb.
如果使⽤cmake⽣成 ,则可能需要启⽤cmake⽤-g调⽤gcc的调试模式,以便我们可以使⽤gdb 已编译的程序。
This can be enabled by adding the CMAKE_BUILD_TYPE parameter to cmake:cmake如何使用
可以通过将CMAKE_BUILD_TYPE参数添加到cmake来启⽤此功能:
cmake -DCMAKE_BUILD_TYPE=Debug .
Then the compiled program can be debugged with gdb.
然后可以使⽤gdb调试编译的程序。
Answered by anonymous.
匿名回答。
调试 cmake

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。