Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
robotran
mbsysc
Commits
7542c703
Commit
7542c703
authored
Sep 26, 2016
by
Nicolas Docquier
Browse files
Force the userfct and symbolic library extensions to be .so rather than dylib on MacOS
parent
67072872
Changes
2
Hide whitespace changes
Inline
Side-by-side
ExampleProjects/MultiplePendulum/symbolicR/CMakeLists.txt
View file @
7542c703
...
...
@@ -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
)
...
...
ExampleProjects/MultiplePendulum/userfctR/CMakeLists.txt
View file @
7542c703
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment