CMake添加-D_DEBUG宏
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
Linux下Debug版不会自动添加 _DEBUG宏,只有NDEBUG宏可用。
cmake ../src _DCMAKE_BUILD_TYPE=Debug -D_DEBUG
会报错: -D_DEBUG should be: VAR:type=value
需要-D_DEBUG=1.
改为在CMakeLists.txt中添加:
if (CMAKE_BUILD_TYPE STREQUAL Debug)
add_definitions(
-D_DEBUG
)
endif ()




A beautiful web dashboard for Linux
最近提交(Master分支:8 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)