From 770bc543a6f260a0ec61037f5f31c8772531d568 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 16 May 2017 16:59:19 +1000 Subject: [PATCH] cxx: detect clang library for std::filesystem --- nc_cxx.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nc_cxx.cmake b/nc_cxx.cmake index b2da366..49a6e66 100644 --- a/nc_cxx.cmake +++ b/nc_cxx.cmake @@ -26,14 +26,14 @@ append_compile_flag ("/std:c++latest") ############################################################################### -# find the gcc experimental filesystem library and append to libs if needed +# find the gcc or clang filesystem library and append to libs if needed # # note, we specifically _cannot_ use find_library because it just makes wild # hardcoded guess and doesn't respect _all_ the system paths; specifically # something like /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/libstdc++.so won't get # discovered. if (NOT DEFINED __nc_cxx_stdcxxfs) - foreach(lib "" stdc++fs) + foreach(lib "" c++experimental stdc++fs) if (NOT __nc_cxx_stdcxxfs) try_compile( __nc_cxx_stdcxxfs ${CMAKE_CURRENT_BINARY_DIR}