+15
-3
lines changedFilter options
+15
-3
lines changed Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
1
+
if(NOT MINGW)
1
2
find_package(Filesystem REQUIRED COMPONENTS Experimental Final)
3
+
endif()
2
4
3
5
#######################################################
4
6
### Library ###
@@ -97,8 +99,13 @@ target_include_directories(matplot
97
99
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
98
100
99
101
# Dependencies
102
+
if(NOT MINGW)
100
103
target_link_libraries_system(matplot
101
104
PRIVATE cimg nodesoup std::filesystem)
105
+
else()
106
+
target_link_libraries_system(matplot
107
+
PRIVATE cimg nodesoup)
108
+
endif()
102
109
103
110
# Required compiler features required
104
111
# 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)
122
129
### Definitions ###
123
130
#######################################################
124
131
# 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()
127
136
endif()
128
-
129
137
# Some hack to not depend on FILE* internals
130
138
# https://github.com/alandefreitas/matplotplusplus/issues/4
131
139
include(CheckSymbolExists)
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
1
+
if(NOT MINGW)
1
2
find_package(Filesystem REQUIRED)
3
+
endif()
2
4
add_executable(generate_examples main.cpp)
5
+
if(NOT MINGW)
3
6
target_link_libraries(generate_examples std::filesystem)
7
+
endif()
4
8
target_compile_features(generate_examples PRIVATE cxx_std_17)
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4