Commit 087785d3 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

This should fix compilation on MacOSX

parent d866f528
......@@ -48,6 +48,9 @@ if(ENABLE_STATIC)
add_library(belcard STATIC ${BELCARD_HEADER_FILES} ${BELCARD_SOURCE_FILES_C} ${BELCARD_SOURCE_FILES_CXX})
else()
add_library(belcard SHARED ${BELCARD_HEADER_FILES} ${BELCARD_SOURCE_FILES_C} ${BELCARD_SOURCE_FILES_CXX})
if(APPLE)
set_target_properties(belcard PROPERTIES LINKER_FLAGS "-stdlib=libc++")
endif()
set_target_properties(belcard PROPERTIES VERSION ${BELCARD_SO_VERSION})
endif()
......
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