From 9129a5871b73493b93d973c7098d8c2215124d7b Mon Sep 17 00:00:00 2001 From: Goober5000 Date: Tue, 5 May 2026 23:29:11 -0400 Subject: [PATCH] fix cmake warning Per Claude: > The `IF` opens with `(MSVC_USE_RUNTIME_DLL OR FSO_BUILD_QTFRED)` but the `ELSE` and `ENDIF` only reference `(MSVC_USE_RUNTIME_DLL)`. CMake requires the argument in `ELSE`/`ENDIF` to match the `IF` exactly (or be omitted). --- cmake/toolchain-msvc.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/toolchain-msvc.cmake b/cmake/toolchain-msvc.cmake index ae4fd67ad44..30195ac81b5 100644 --- a/cmake/toolchain-msvc.cmake +++ b/cmake/toolchain-msvc.cmake @@ -74,9 +74,9 @@ endif() IF(MSVC_USE_RUNTIME_DLL OR FSO_BUILD_QTFRED) set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$>:Debug>DLL") add_compile_definitions(_AFXDLL) -ELSE(MSVC_USE_RUNTIME_DLL) +ELSE() set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$>:Debug>") -ENDIF(MSVC_USE_RUNTIME_DLL) +ENDIF() # Debug set(CMAKE_C_FLAGS_DEBUG "/W4 /Gy /Zi /Od /RTC1 /Gd /Oy-")