CMake/Modules/CXX-DetectStdlib.h
Ben Boeckel ffe74289b3 CMakeDetermineCompilerId: extract C++ standard library impl
This is needed for C++ modules because `import std` support may differ
based on the standard library implementation. Extract the information as
necessary.
2024-04-12 11:46:39 -04:00

11 lines
219 B
C

#include <version>
// clang-format off
#if defined(_LIBCPP_VERSION)
CMAKE-STDLIB-DETECT: libc++
#elif defined(__GLIBCXX__)
CMAKE-STDLIB-DETECT: libstdc++
#else
CMAKE-STDLIB-DETECT: UNKNOWN
#endif
// clang-format on