Commit 7542c703 authored by Nicolas Docquier's avatar Nicolas Docquier
Browse files

Force the userfct and symbolic library extensions to be .so rather than dylib on MacOS

parent 67072872
......@@ -50,6 +50,11 @@ include_directories ( ${CMAKE_CURRENT_BINARY_DIR} )
if( FLAG_SHARED_LIB OR FLAG_SEPARATE_SYMBOLIC )
add_library(Project_symbolic SHARED ${SOURCE_FILES})
# MacOS: Force extension to be .so rather than .dylib
if(APPLE)
set_target_properties(Project_symbolic PROPERTIES SUFFIX .so)
endif()
else()
add_library(Project_symbolic STATIC ${SOURCE_FILES})
add_definitions( -DPROJECT_USERFCT_STATIC_DEFINE)
......
......@@ -83,6 +83,12 @@ if( FLAG_SHARED_LIB OR FLAG_SEPARATE_USER_FCT )
target_link_libraries (Project_userfct ${LIB_MBSYSC_REALTIME})
target_link_libraries (Project_userfct ${LIB_MBSYSC_MODULES})
target_link_libraries (Project_userfct ${LIB_MBSYSC_UTILITIES})
# MacOS: Force extension to be .so rather than .dylib
if(APPLE)
set_target_properties(Project_userfct PROPERTIES SUFFIX ".so")
endif()
else()
add_library(Project_userfct STATIC ${SOURCE_FILES})
add_definitions( -DMBSYSC_UTILITIES_STATIC_DEFINE)
......
Supports Markdown
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