diff options
author | pommicket <pommicket@gmail.com> | 2023-01-09 13:51:46 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-09 13:51:46 -0500 |
commit | 2d9c5407fdc923a2e8c1fe39213b09c769a74e2e (patch) | |
tree | f33ea9a53be292f2f4e67994a0a30d2e489bba31 /CMakeLists.txt | |
parent | a7d4e507d07919fba43ba14e9eb4fb62de2691f9 (diff) |
fix some windows problems
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
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) |