From 9e25033c851312ff14d784751a87df2c3a59c24c Mon Sep 17 00:00:00 2001 From: friendlyanon Date: Wed, 6 Jan 2021 01:08:16 +0000 Subject: [PATCH] Link against filesystem An extra link is required on some versions of GCC and Clang to use the filesystem library. See: https://en.cppreference.com/w/cpp/filesystem#Notes --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c94c3e4..9fc0535 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,13 @@ target_include_directories( target_compile_features(ssp INTERFACE cxx_std_17) +target_link_libraries( + ssp + INTERFACE + "$<$,$,9.0>>:c++fs>" + "$<$,$,9.1>>:stdc++fs>" +) + # ---- Install ---- include(CMakePackageConfigHelpers)