CMake: Work around implot#565

This commit is contained in:
Joshua Vandaële 2025-12-07 19:09:47 +01:00
parent 75bc9a474e
commit 5e0c0544e2
No known key found for this signature in database
GPG Key ID: 6BB95AF71EB0F406
2 changed files with 8 additions and 0 deletions

View File

@ -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")

5
Externals/implot/implot_isnan_fix.h vendored Normal file
View File

@ -0,0 +1,5 @@
#pragma once
#include <cmath>
using std::isnan;