diff --git a/source/common.cmake b/source/common.cmake index 64e917f3b..577a8b1e8 100644 --- a/source/common.cmake +++ b/source/common.cmake @@ -73,6 +73,7 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") # clang set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wdeprecated") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi") endif() if(MSVC)