summaryrefslogtreecommitdiffstats
path: root/Modules/CXX-DetectStdlib.h
blob: 0214deee6ca0a4adda2e196c1eb8f149dc3371f8 (plain)
1
2
3
4
5
6
7
8
9
10
#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