Skip to content

Commit 032ec9c

Browse files
committed
Include private macro to support experimental filesystem
1 parent 96375c5 commit 032ec9c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/matplot/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ target_link_libraries(matplot
9595
# https://cmake.org/cmake/help/v3.14/manual/cmake-compile-features.7.html#requiring-language-standards
9696
target_compile_features(matplot PUBLIC cxx_std_17)
9797

98+
# Definition to find the proper filesystem library
99+
if (CXX_FILESYSTEM_IS_EXPERIMENTAL)
100+
target_compile_definitions(matplot PRIVATE CXX_FILESYSTEM_IS_EXPERIMENTAL)
101+
endif()
102+
98103
# Hacks to support MSVC
99104
if(MSVC)
100105
# World maps require this option because there is so much in the file
@@ -197,7 +202,7 @@ if (BUILD_EXPERIMENTAL_OPENGL_BACKEND)
197202
endif ()
198203

199204
# https://github.com/glfw/glfw
200-
find_package(glfw3 REQUIRED)
205+
find_package(glfw3 QUIET)
201206
if (NOT GLFW3_FOUND AND NOT TARGET glfw)
202207
# Use CPM only if not found, to avoid ODR violations
203208
# find_package(glfw3 REQUIRE) would suffice if it worked well

0 commit comments

Comments
 (0)