From a56b938636f10b06eab422e92d57553ed86389c4 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 5 Dec 2016 19:40:24 +0100 Subject: [PATCH] Changed: Only compile with libc++ in C++ --HG-- branch : develop --- code/CMakeModules/nel.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/CMakeModules/nel.cmake b/code/CMakeModules/nel.cmake index 3aa9d66bc..874e44e0f 100644 --- a/code/CMakeModules/nel.cmake +++ b/code/CMakeModules/nel.cmake @@ -840,9 +840,9 @@ MACRO(NL_SETUP_BUILD) # use libc++ under OX X to be able to use new C++ features (and else it'll use GCC 4.2.1 STL) # minimum target is now OS X 10.7 - ADD_PLATFORM_FLAGS("-stdlib=libc++") - - SET(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -Wl,-headerpad_max_install_names") + SET(PLATFORM_CXXFLAGS "${PLATFORM_CXXFLAGS} -stdlib=libc++") + + ADD_PLATFORM_LINKFLAGS("-Wl,-headerpad_max_install_names") IF(HAVE_FLAG_SEARCH_PATHS_FIRST) ADD_PLATFORM_LINKFLAGS("-Wl,-search_paths_first")