From 62f1d7c991a5ce6d7ac0d7a28d2c246348c927e9 Mon Sep 17 00:00:00 2001 From: walbourn Date: Sun, 27 Nov 2022 11:58:27 -0800 Subject: [PATCH] Minor cmake cleanup --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b5f217..1c46981 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -321,15 +321,13 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") foreach(t IN LISTS TOOL_EXES) target_compile_options(${t} PRIVATE ${WarningsEXE}) endforeach() -endif() -if(MINGW) +elseif(MINGW) foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME}) target_compile_definitions(${t} PRIVATE $,_DEBUG,NDEBUG>) target_compile_options(${t} PRIVATE -Wno-ignored-attributes) target_link_options(${t} PRIVATE -municode) endforeach() -endif() -if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC") +elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC") foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME}) target_compile_options(${t} PRIVATE /sdl /permissive- /JMC- /Zc:__cplusplus) endforeach()