diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2018-01-31 22:13:13 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2018-01-31 22:13:13 +0300 |
commit | 4a085fe8d6ab9322358d0c598c793c0fb4fc90aa (patch) | |
tree | a0b222cba6b75130c28665d367b5f0f17d740512 /CMakeLists.txt | |
parent | a5a6d3c224b276c76a9c9c56edeae2794922c198 (diff) |
Fix build breakage on POSIX hopefully
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b9e75a1..34e66e7b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,6 +83,9 @@ all_link_libraries(PUBLIC quickcpplib::hl outcome::hl Threads::Threads) # Set the system dependencies this library has if(CMAKE_SYSTEM_NAME MATCHES "Linux") find_library(libstdcxx_stdcxxfs stdc++fs) + if(libstdcxx_stdcxxfs MATCHES "NOTFOUND") + set(libstdcxx_stdcxxfs -lstdc++fs) + endif() all_link_libraries(PUBLIC ${libstdcxx_stdcxxfs} rt) endif() if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR APPLE) |