From d8d6b91257fb4b9d0f184a1abf2613251baf2c08 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Thu, 6 Mar 2014 14:48:20 +0100 Subject: [PATCH] std lib adjustable on all versions of OS X --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7950aeb29..ab34c1bd4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,8 +112,9 @@ if(APPLE) if(DARWIN_VERSION GREATER 12) message(STATUS "Activating -std=c++11 flag for >= OS X 10.9") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++") - elseif(OSXLIBSTD) - message("Overriding default stdlib implementation ${OSXLIBSTD}") + endif() + if(OSXLIBSTD) + message(STATUS "Overriding default stdlib implementation ${OSXLIBSTD}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=${OSXLIBSTD}") endif() endif()