mirror of
https://github.com/red0124/ssp.git
synced 2025-12-14 21:59:55 +01:00
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
This commit is contained in:
@@ -30,6 +30,13 @@ target_include_directories(
|
||||
|
||||
target_compile_features(ssp INTERFACE cxx_std_17)
|
||||
|
||||
target_link_libraries(
|
||||
ssp
|
||||
INTERFACE
|
||||
"$<$<AND:$<CXX_COMPILER_ID:AppleClang,Clang>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,9.0>>:c++fs>"
|
||||
"$<$<AND:$<CXX_COMPILER_ID:GNU>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,9.1>>:stdc++fs>"
|
||||
)
|
||||
|
||||
# ---- Install ----
|
||||
|
||||
include(CMakePackageConfigHelpers)
|
||||
|
||||
Reference in New Issue
Block a user