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}