diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt index b793e6ec54e9..96d17fb732ec 100644 --- a/libcxx/CMakeLists.txt +++ b/libcxx/CMakeLists.txt @@ -67,6 +67,7 @@ get_target_triple(LIBCXX_TARGET_TRIPLE set(LIBCXX_TARGET_TRIPLE ${LIBCXX_TARGET_TRIPLE} CACHE STRING "Target triple.") if ("${LIBCXX_CXX_ABI}" STREQUAL "libsupc++") + add_definitions(-D__GLIBCXX__) set(LIBCXX_LIBSUPCXX_INCLUDE_PATHS "${LIBCXX_LIBSUPCXX_INCLUDE_PATHS}" CACHE STRINGS "Paths to libsupc++ include directories separate by ';'.")