Commit c8e472d0 authored by Nicolas Docquier's avatar Nicolas Docquier
Browse files

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

Force the userfct and symbolic library extensions to be .so rather than dylib on MacOS -> PendumSpring project and templates
parent 7542c703
......@@ -17,7 +17,7 @@
#include "user_IO.h"
UserIO* mbs_new_user_IO()
UserIO* mbs_new_user_IO(UserIoInfo* ioInfo)
{
UserIO *uvs;
int i=0;
......
......@@ -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)
......
......@@ -56,6 +56,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)
......
......@@ -89,6 +89,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