From 5e0c0544e233723776fb12c22ccaf6b850dd9d4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Vanda=C3=ABle?= Date: Sun, 7 Dec 2025 19:09:47 +0100 Subject: [PATCH] CMake: Work around implot#565 --- Externals/implot/CMakeLists.txt | 3 +++ Externals/implot/implot_isnan_fix.h | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 Externals/implot/implot_isnan_fix.h diff --git a/Externals/implot/CMakeLists.txt b/Externals/implot/CMakeLists.txt index 922ae4ff93..c757ec48cb 100644 --- a/Externals/implot/CMakeLists.txt +++ b/Externals/implot/CMakeLists.txt @@ -20,3 +20,6 @@ target_link_libraries(implot PRIVATE imgui PRIVATE fmt::fmt ) + +# https://github.com/epezent/implot/pull/565 +target_compile_options(implot PRIVATE -include "${CMAKE_CURRENT_SOURCE_DIR}/implot_isnan_fix.h") diff --git a/Externals/implot/implot_isnan_fix.h b/Externals/implot/implot_isnan_fix.h new file mode 100644 index 0000000000..4e89d33d22 --- /dev/null +++ b/Externals/implot/implot_isnan_fix.h @@ -0,0 +1,5 @@ +#pragma once + +#include + +using std::isnan;