File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ target_link_libraries(fable
52
52
PUBLIC
53
53
fmt::fmt
54
54
nlohmann_json::nlohmann_json
55
+ stdc++fs
55
56
)
56
57
57
58
option (FABLE_ALLOW_COMMENTS "Allow comments when parsing JSON?" ON )
Original file line number Diff line number Diff line change @@ -93,6 +93,14 @@ def package_info(self):
93
93
self .cpp_info .set_property ("cmake_file_name" , "fable" )
94
94
self .cpp_info .set_property ("cmake_target_name" , "fable::fable" )
95
95
self .cpp_info .set_property ("pkg_config_name" , "fable" )
96
+
97
+ # Linking to libstdc++fs is required on GCC < 9.
98
+ # (GCC compilers with version < 7 have no std::filesystem support.)
99
+ # No consideration has been made yet for other compilers,
100
+ # please add them here as necessary.
101
+ if self .settings .get_safe ("compiler" ) == "gcc" and self .settings .get_safe ("compiler.version" ) in ["7" , "8" ]:
102
+ self .cpp_info .system_libs = ["stdc++fs" ]
103
+
96
104
if not self .in_local_cache :
97
105
self .cpp_info .libs = ["fable" ]
98
106
self .cpp_info .includedirs .append (os .path .join (self .build_folder , "include" ))
You can’t perform that action at this time.
0 commit comments