Skip to content

Commit eed3549

Browse files
committed
Fix experimental filesystem support
According to those comments at the beginning of `FindFilesystem.cmake`, if no components are provided when calling `find_package`, it behaves as if the `Final` component was specified. Only if we specify both of `Experimental` and `Final` components, it will falls back to experimental filesystem if final one is unavailable. This will fix the build errors with g++ v7.
1 parent 4a679e2 commit eed3549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/matplot/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
find_package(Filesystem REQUIRED)
1+
find_package(Filesystem REQUIRED COMPONENTS Experimental Final)
22

33
add_library(matplot
44
matplot.h

0 commit comments

Comments
 (0)