This commit is contained in:
2026-09-16 15:55:49 +08:00
parent 72116b1edd
commit 09786b9d85
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ void Release()
int Main()
{
Position* p_crash = nullptr;
log_info("{}", to_string(*p_crash));
//log_info("{}", to_string(*p_crash));
g_log->SetLogFile("log/");
+3 -3
View File
@@ -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