cmake with gdb

  If you want to build for debug (including source information, i.e. -g) when compiling, use

cmake -DCMAKE_BUILD_TYPE=Debug<path>

 

  If you want to build a release build, you can use

cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo<path>

 

posted @ 2013-12-15 15:11  孤独的小马哥  阅读(187)  评论(0)    收藏  举报