From a5a6d3c224b276c76a9c9c56edeae2794922c198 Mon Sep 17 00:00:00 2001 From: "Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com" Date: Tue, 30 Jan 2018 21:31:33 +0000 Subject: In theory, OS X now works. You'll need LLVM clang though, XCode 9.2 is still missing --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 37a29431..4b9e75a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,10 +82,12 @@ endif() all_link_libraries(PUBLIC quickcpplib::hl outcome::hl Threads::Threads) # Set the system dependencies this library has if(CMAKE_SYSTEM_NAME MATCHES "Linux") - all_link_libraries(PUBLIC stdc++fs rt) + find_library(libstdcxx_stdcxxfs stdc++fs) + all_link_libraries(PUBLIC ${libstdcxx_stdcxxfs} rt) endif() if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR APPLE) - all_link_libraries(PUBLIC c++experimental) + find_library(libcxx_cxxexperimental c++experimental) + all_link_libraries(PUBLIC ${libcxx_cxxexperimental}) endif() # Set any macros this library requires if(WIN32) -- cgit v1.2.3