1
This commit is contained in:
@@ -12,7 +12,7 @@ endif()
|
||||
if (NOT DEFINED USE_CONSOLE)
|
||||
set(USE_CONSOLE true)
|
||||
endif()
|
||||
if(WIN32 AND (NOT DEFINED USE_CRASH_RPT))
|
||||
if(WIN32 AND (NOT DEFINED USE_CRASH_RPT) AND CMAKE_BUILD_TYPE MATCHES "Release")
|
||||
set(USE_CRASH_RPT true)
|
||||
endif()
|
||||
if(USE_CRASH_RPT)
|
||||
@@ -88,7 +88,7 @@ include_directories(${CMAKE_SOURCE_DIR}/third/simde)
|
||||
# magic enmu
|
||||
include_directories(${CMAKE_SOURCE_DIR}/third/magic_enum/include)
|
||||
# CrashRpt
|
||||
if(WIN32 AND USE_CRASH_RPT)
|
||||
if(USE_CRASH_RPT)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/third/CrashRpt/include)
|
||||
target_link_libraries(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/third/CrashRpt/${ARCH}/CrashRpt1403.lib)
|
||||
endif()
|
||||
@@ -137,7 +137,7 @@ if(MSVC)
|
||||
endif()
|
||||
endif()
|
||||
# 复制CrashRpt
|
||||
if (CMAKE_BUILD_TYPE MATCHES "Release" AND USE_CRASH_RPT)
|
||||
if (USE_CRASH_RPT)
|
||||
add_custom_command(TARGET ${PROJECT_NAME}
|
||||
PRE_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy
|
||||
|
||||
Reference in New Issue
Block a user