try to build osx version

This commit is contained in:
asquelt 2017-04-06 17:07:14 +02:00
parent db50c531d9
commit f2db5a8229

View File

@ -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()