From ee72760f3a01eecd23d87779e007d960bb4eb57b Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 16 Jul 2016 15:32:19 +0300 Subject: [PATCH] libc++ is now used by the linker too (when applicable) --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 67b7dbb17..5fe947ef8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -518,6 +518,7 @@ if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) # C++11 support using SDKs 10.7 and 10.8. if ( APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang" ) set( CMAKE_CXX_FLAGS "-stdlib=libc++ ${CMAKE_CXX_FLAGS}" ) + set( CMAKE_EXE_LINKER_FLAGS "-stdlib=libc++ ${CMAKE_EXE_LINKER_FLAGS}" ) endif () # Remove extra warnings when using the official DirectX headers.