File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1+ if (NOT MINGW)
12find_package (Filesystem REQUIRED COMPONENTS Experimental Final)
3+ endif ()
24
35#######################################################
46### Library ###
@@ -97,8 +99,13 @@ target_include_directories(matplot
9799 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} >)
98100
99101# Dependencies
102+ if (NOT MINGW)
100103target_link_libraries_system(matplot
101104 PRIVATE cimg nodesoup std::filesystem)
105+ else ()
106+ target_link_libraries_system(matplot
107+ PRIVATE cimg nodesoup)
108+ endif ()
102109
103110# Required compiler features required
104111# https://cmake.org/cmake/help/v3.14/manual/cmake-compile-features.7.html#requiring-language-standards
@@ -122,10 +129,11 @@ maybe_target_pedantic_warnings(matplot)
122129### Definitions ###
123130#######################################################
124131# Use experimental filesystem if std::filesystem is not available yet
125- if (CXX_FILESYSTEM_IS_EXPERIMENTAL)
126- target_compile_definitions (matplot PRIVATE CXX_FILESYSTEM_IS_EXPERIMENTAL)
132+ if (NOT MINGW)
133+ if (CXX_FILESYSTEM_IS_EXPERIMENTAL)
134+ target_compile_definitions (matplot PRIVATE CXX_FILESYSTEM_IS_EXPERIMENTAL)
135+ endif ()
127136endif ()
128-
129137# Some hack to not depend on FILE* internals
130138# https://github.com/alandefreitas/matplotplusplus/issues/4
131139include (CheckSymbolExists)
Original file line number Diff line number Diff line change 1+ if (NOT MINGW)
12find_package (Filesystem REQUIRED)
3+ endif ()
24add_executable (generate_examples main.cpp)
5+ if (NOT MINGW)
36target_link_libraries (generate_examples std::filesystem)
7+ endif ()
48target_compile_features (generate_examples PRIVATE cxx_std_17)
You can’t perform that action at this time.
0 commit comments