diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e8ecf1830..6da98c38b 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -361,6 +361,7 @@ endif () if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") message(STATUS "Using Clang compiler") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") endif () if ((CMAKE_CXX_COMPILER_ID MATCHES "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))