Merge pull request #14305 from JoshuaVandaele/implot-ninja-win

CMake: Apply implot fix on Windows with non-VS generators
This commit is contained in:
OatmealDome
2026-01-26 21:53:37 -05:00
committed by GitHub

View File

@@ -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
$<$<CXX_COMPILER_ID:MSVC>:/FI${CMAKE_CURRENT_SOURCE_DIR}/implot_isnan_fix.h>
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-include ${CMAKE_CURRENT_SOURCE_DIR}/implot_isnan_fix.h>
)