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> +)