cxx: detect clang library for std::filesystem
This commit is contained in:
parent
e1ac923f32
commit
770bc543a6
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user