CMake 生成 Linux 下 Debug 版本的 Makefile 方法
默认为 Release 版的 Makefile。 要生成 Debug 版时,方法如下:cmake -DCMAKE_BUILD_TYPE=Debug ..参考:CMAKE_BUILD_TYPEhttps://cmake.org/cmake/help/v3.6/variable/CMAKE_BUILD_TYPE.htmlCMAKE_CONFIGURATION_TYPEShttps://cmake
·
默认为 Release
版的 Makefile
。 要生成 Debug
版时,方法如下:
cmake -DCMAKE_BUILD_TYPE=Debug ..
参考:
CMAKE_BUILD_TYPE
https://cmake.org/cmake/help/v3.6/variable/CMAKE_BUILD_TYPE.html
CMAKE_CONFIGURATION_TYPES
https://cmake.org/cmake/help/v3.6/variable/CMAKE_CONFIGURATION_TYPES.html#variable:CMAKE_CONFIGURATION_TYPES
更多推荐
已为社区贡献3条内容
所有评论(0)