首页 > 编程语言 >VS调试release程序

VS调试release程序

时间:2023-01-10 20:12:13浏览次数:46  
标签:set CMAKE CXX LINKER RELEASE VS FLAGS release 调试

按如下设置vs工程属性:

cmake生成带调试信息的release工程

    set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -Od -Wall")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8")
    set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zi")
    set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /DEBUG:FULL /OPT:REF /OPT:ICF")
    set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /DEBUG:FULL /OPT:REF /OPT:ICF")

标签:set,CMAKE,CXX,LINKER,RELEASE,VS,FLAGS,release,调试
From: https://www.cnblogs.com/mmmmmmmmm/p/17041265.html

相关文章