mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 13:05:20 +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:
parent
cfa3fc8c9e
commit
9e25033c85
@ -30,6 +30,13 @@ target_include_directories(
|
|||||||
|
|
||||||
target_compile_features(ssp INTERFACE cxx_std_17)
|
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 ----
|
# ---- Install ----
|
||||||
|
|
||||||
include(CMakePackageConfigHelpers)
|
include(CMakePackageConfigHelpers)
|
||||||
|
Loading…
Reference in New Issue
Block a user