File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -248,5 +248,5 @@ cmake_pop_check_state()
248
248
set (Filesystem_FOUND ${_found} CACHE BOOL "TRUE if we can run a program using std::filesystem" FORCE )
249
249
250
250
if (Filesystem_FIND_REQUIRED AND NOT Filesystem_FOUND )
251
- message (FATAL_ERROR "Cannot run a simple program using std::filesystem\n You need to update your C++ compiler to use this library" )
251
+ message (STATUS "Could not run a simple program using std::filesystem\n You might need to update your C++ compiler to use this library" )
252
252
endif ()
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ target_include_directories(matplot
102
102
$< INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} > )
103
103
104
104
# Dependencies
105
- if (NOT MINGW )
105
+ if (TARGET std::filesystem AND NOT MINGW )
106
106
target_link_libraries_system (matplot
107
107
PRIVATE cimg nodesoup std::filesystem )
108
108
else ()
Original file line number Diff line number Diff line change 1
1
if (NOT MINGW )
2
- find_package (Filesystem REQUIRED )
2
+ find_package (Filesystem REQUIRED )
3
3
endif ()
4
4
add_executable (generate_examples main.cpp )
5
- if (NOT MINGW )
6
- target_link_libraries (generate_examples std::filesystem )
5
+ if (TARGET std::filesystem )
6
+ target_link_libraries (generate_examples std::filesystem )
7
7
endif ()
8
- target_compile_features (generate_examples PRIVATE cxx_std_17 )
8
+ target_compile_features (generate_examples PRIVATE cxx_std_17 )
You can’t perform that action at this time.
0 commit comments