Commit 3b8d4fa1 authored by Ghislain MARY's avatar Ghislain MARY

No longer put the "-stdlib=libc++" build option since we now target Mac OS X 10.9.

parent b9f1b75a
......@@ -86,7 +86,6 @@ else()
endif()
if(APPLE)
list(APPEND STRICT_OPTIONS_CPP "-Wno-error=unknown-warning-option" "-Qunused-arguments" "-Wno-tautological-compare" "-Wno-unused-function" "-Wno-array-bounds")
list(APPEND STRICT_OPTIONS_CXX "-stdlib=libc++")
endif()
if(ENABLE_STRICT)
list(APPEND STRICT_OPTIONS_CPP "-Werror" "-Wextra" "-Wno-unused-parameter" "-fno-strict-aliasing")
......
......@@ -51,9 +51,6 @@ if(ENABLE_STATIC)
endif()
if(ENABLE_SHARED)
add_library(belr SHARED ${BELR_HEADER_FILES} ${BELR_SOURCE_FILES_C} ${BELR_SOURCE_FILES_CXX})
if(APPLE)
set_target_properties(belr PROPERTIES LINK_FLAGS "-stdlib=libc++")
endif()
#TODO: replace by if(APPLE) when we want to make apple framework on linphone-desktop too
if(IOS)
if(IOS)
......
......@@ -56,9 +56,6 @@ if(NOT "${LINK_FLAGS_STR}" STREQUAL "")
set_target_properties(belle_sip_tester PROPERTIES LINK_FLAGS "${LINK_FLAGS_STR}")
endif()
if(APPLE)
set_target_properties(belr_tester PROPERTIES LINK_FLAGS "-stdlib=libc++")
endif()
if(NOT IOS)
install(TARGETS belr_tester
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
......
......@@ -32,11 +32,8 @@ foreach(EXECUTABLE belr-parse belr-demo belr-compiler)
add_executable(${EXECUTABLE} ${SOURCE_FILES_CXX})
set_target_properties(${EXECUTABLE} PROPERTIES LINKER_LANGUAGE CXX)
target_link_libraries(${EXECUTABLE} ${BELR_LIBRARIES_FOR_TOOLS} ${BCTOOLBOX_CORE_LIBRARIES})
if(APPLE)
set_target_properties(${EXECUTABLE} PROPERTIES LINK_FLAGS "-stdlib=libc++")
endif()
endforeach()
if(NOT IOS)
install(TARGETS belr-parse belr-compiler
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment