mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-01-30 02:53:20 +00:00
CMake: Apply implot fix on Windows with non-VS generators
If using CMake and Ninja or any CMake generator that isn't Visual Studio on Windows, the `-include` will be ignored and the implot fix will not be applied.
This commit is contained in:
parent
c4c2aa8afd
commit
e28cb4bd54
5
Externals/implot/CMakeLists.txt
vendored
5
Externals/implot/CMakeLists.txt
vendored
@ -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>
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user