From f2db5a8229be8d12ff962d20670d0ab6c970b132 Mon Sep 17 00:00:00 2001 From: asquelt Date: Thu, 6 Apr 2017 17:07:14 +0200 Subject: [PATCH] try to build osx version --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c5f9b786..df86ea46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -126,3 +126,9 @@ endif() # --- End of section --- # TODO : OS X build settings and tasks +if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG) + option(USE_LIBC++ "Use libc++ instead of libstdc++" ${APPLE}) + if(USE_LIBC++) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") + endif() +endif()