summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-09 13:51:46 -0500
committerpommicket <pommicket@gmail.com>2023-01-09 13:51:46 -0500
commit2d9c5407fdc923a2e8c1fe39213b09c769a74e2e (patch)
treef33ea9a53be292f2f4e67994a0a30d2e489bba31 /CMakeLists.txt
parenta7d4e507d07919fba43ba14e9eb4fb62de2691f9 (diff)
fix some windows problems
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a12c9b3..d1a59e7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,7 +13,8 @@ target_compile_definitions(ted PUBLIC DEBUG=1)
if(MSVC)
target_sources(ted PRIVATE ted.res)
target_include_directories(ted PUBLIC ${CMAKE_SOURCE_DIR}/SDL2/include ${CMAKE_SOURCE_DIR}/pcre2)
- target_compile_options(ted PRIVATE /MD /W4 /wd4200 /wd4204 /wd4221 /wd4706 /wd4214 /D_CRT_SECURE_NO_WARNINGS)
+ set(CMAKE_C_FLAGS "/MD /W4 /wd4200 /wd4204 /wd4221 /wd4706 /wd4214 /D_CRT_SECURE_NO_WARNINGS")
+ set(CMAKE_C_FLAGS_DEBUG "/Zi /Ob0 /Od /RTC1")
set(SDL2_LIB_DIR ${CMAKE_SOURCE_DIR}/SDL2/lib/x64)
target_link_libraries(ted ${SDL2_LIB_DIR}/SDL2.lib)
target_link_libraries(ted ${CMAKE_SOURCE_DIR}/pcre2-32-static.lib)