diff --git a/nc_cxx.cmake b/nc_cxx.cmake index c0b4644..1cf0b58 100644 --- a/nc_cxx.cmake +++ b/nc_cxx.cmake @@ -30,8 +30,12 @@ append_compile_flag ("-fpermissive") append_compile_flag ("/std:c++latest") + +############################################################################### +set(STDLIB "libc++" CACHE STRING "Which stdlib to specify for Clang") + if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - append_compile_flag ("-stdlib=libc++") + append_compile_flag ("-stdlib=${STDLIB}") append_link_flag ("-fuse-ld=lld") endif ()