summaryrefslogtreecommitdiff
path: root/Externals
diff options
context:
space:
mode:
authorJoshua Vandaƫle <joshua@vandaele.software>2025-12-07 19:09:47 +0100
committerJoshua Vandaƫle <joshua@vandaele.software>2025-12-11 03:50:00 +0100
commit5e0c0544e233723776fb12c22ccaf6b850dd9d4d (patch)
tree83792044bcb8ff1f84154817855836b788e501c3 /Externals
parent75bc9a474edab83c8751b73939a7136990c3c118 (diff)
CMake: Work around implot#565
Diffstat (limited to 'Externals')
-rw-r--r--Externals/implot/CMakeLists.txt3
-rw-r--r--Externals/implot/implot_isnan_fix.h5
2 files changed, 8 insertions, 0 deletions
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 <cmath>
+
+using std::isnan;