From e28cb4bd54e61306ea1f82dc68b8fdff611eb51d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Vanda=C3=ABle?= Date: Mon, 26 Jan 2026 05:32:07 +0100 Subject: [PATCH] CMake: Apply implot fix on Windows with non-VS generators If using CMake and Ninja or any CMake generator that isn't Visual Studio on Windows, the `-include` will be ignored and the implot fix will not be applied. --- Externals/implot/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Externals/implot/CMakeLists.txt b/Externals/implot/CMakeLists.txt index c757ec48cb3..6ee7a386a8e 100644 --- a/Externals/implot/CMakeLists.txt +++ b/Externals/implot/CMakeLists.txt @@ -22,4 +22,7 @@ target_link_libraries(implot ) # https://github.com/epezent/implot/pull/565 -target_compile_options(implot PRIVATE -include "${CMAKE_CURRENT_SOURCE_DIR}/implot_isnan_fix.h") +target_compile_options(implot PRIVATE + $<$:/FI${CMAKE_CURRENT_SOURCE_DIR}/implot_isnan_fix.h> + $<$>:-include ${CMAKE_CURRENT_SOURCE_DIR}/implot_isnan_fix.h> +)