summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Leggett <chris@leggett.dev>2022-08-23 03:32:49 -0400
committerGitHub <noreply@github.com>2022-08-23 09:32:49 +0200
commite12e1d67c61c607f58ba4972f8df8d4e26f2a5bd (patch)
tree13bd2a09724c8feb599241fcd5c7f2b042ac3b1c
parentd39a1a0bdfb142c61296f187689b2af916dd8d8a (diff)
Prevents optimizations for debug configuration on Windows. (#1270)
-rw-r--r--libultraship/libultraship/CMakeLists.txt4
-rw-r--r--soh/CMakeLists.txt6
2 files changed, 7 insertions, 3 deletions
diff --git a/libultraship/libultraship/CMakeLists.txt b/libultraship/libultraship/CMakeLists.txt
index 297d157b1..8f365162d 100644
--- a/libultraship/libultraship/CMakeLists.txt
+++ b/libultraship/libultraship/CMakeLists.txt
@@ -567,6 +567,10 @@ target_include_directories(${PROJECT_NAME} PRIVATE
if(MSVC)
if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64")
target_compile_options(${PROJECT_NAME} PRIVATE
+ $<$<CONFIG:Debug>:
+ /Od;
+ /Oi-
+ >
$<$<CONFIG:Release>:
/std:c++latest;
/Oi;
diff --git a/soh/CMakeLists.txt b/soh/CMakeLists.txt
index 3179555c7..e9b67408f 100644
--- a/soh/CMakeLists.txt
+++ b/soh/CMakeLists.txt
@@ -1738,15 +1738,15 @@ if(MSVC)
if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64")
target_compile_options(${PROJECT_NAME} PRIVATE
$<$<CONFIG:Debug>:
- /sdl-;
- /w
+ /w;
+ /Od
>
$<$<CONFIG:Release>:
/Oi;
- /sdl-;
/Gy;
/W3
>
+ /sdl-;
/permissive-;
/MP;
${DEFAULT_CXX_DEBUG_INFORMATION_FORMAT};