From fcbee3a16deaef031a660e63984218da8673ebd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niclas=20Lars=C3=A9n?= Date: Mon, 19 Oct 2020 16:54:31 +0200 Subject: [PATCH] [boost 1.74] set -std=c++11 & libc++ for apple clang --- ports/boost-modular-build-helper/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ports/boost-modular-build-helper/CMakeLists.txt b/ports/boost-modular-build-helper/CMakeLists.txt index 852430dc9b476a..5464605b0a4e1c 100644 --- a/ports/boost-modular-build-helper/CMakeLists.txt +++ b/ports/boost-modular-build-helper/CMakeLists.txt @@ -86,7 +86,7 @@ endif() if(NOT CFLAGS STREQUAL "") string(REPLACE " " " " CFLAGS "${CFLAGS}") endif() -if(NOT LDLAGS STREQUAL "") +if(NOT LDFLAGS STREQUAL "") string(REPLACE " " " " LDFLAGS "${LDFLAGS}") endif() @@ -113,7 +113,8 @@ foreach(INCDIR ${CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES}) endforeach() if(APPLE) - set(CXXFLAGS "${CXXFLAGS} -D_DARWIN_C_SOURCE") + set(CXXFLAGS "${CXXFLAGS} -D_DARWIN_C_SOURCE -std=c++11 -stdlib=libc++") + set(LDFLAGS "${LDFLAGS} -stdlib=libc++" endif() find_library(ZLIB_LIBPATH z)