Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sot-dynamic-pinocchio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guilhem Saurel
sot-dynamic-pinocchio
Commits
8c0f6b28
Commit
8c0f6b28
authored
5 years ago
by
Joseph Mirabel
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] Add option SUFFIX_SO_VERSION
parent
977c867c
No related branches found
Branches containing commit
Tags
v2.9.2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+3
-0
3 additions, 0 deletions
CMakeLists.txt
src/CMakeLists.txt
+4
-3
4 additions, 3 deletions
src/CMakeLists.txt
with
7 additions
and
3 deletions
CMakeLists.txt
+
3
−
0
View file @
8c0f6b28
...
...
@@ -39,6 +39,9 @@ SET(BOOST_COMPONENTS filesystem system unit_test_framework)
OPTION
(
BUILD_PYTHON_INTERFACE
"Build the python binding"
ON
)
OPTION
(
INSTALL_PYTHON_INTERFACE_ONLY
"Install *ONLY* the python bindings"
OFF
)
OPTION
(
SUFFIX_SO_VERSION
"Suffix shared library name by a string depending on git status of project"
ON
)
IF
(
BUILD_PYTHON_INTERFACE
)
FINDPYTHON
()
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
4
−
3
View file @
8c0f6b28
...
...
@@ -32,9 +32,10 @@ SET(integrator-force-exact_plugins_dependencies integrator-force)
FOREACH
(
lib
${
plugins
}
)
SET
(
libname dp-
${
lib
}
)
ADD_LIBRARY
(
${
libname
}
SHARED
${
lib
}
)
SET_TARGET_PROPERTIES
(
${
libname
}
PROPERTIES
PREFIX
""
SOVERSION
${
PROJECT_VERSION
}
)
SET_TARGET_PROPERTIES
(
${
libname
}
PROPERTIES PREFIX
""
)
IF
(
SUFFIX_SO_VERSION
)
SET_TARGET_PROPERTIES
(
${
libname
}
PROPERTIES SOVERSION
${
PROJECT_VERSION
}
)
ENDIF
()
IF
(
${
lib
}
_plugins_dependencies
)
ADD_DEPENDENCIES
(
${
libname
}
"dp-
${${
lib
}
_plugins_dependencies
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment