Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
dynamic-graph
Commits
f0d43bc9
Unverified
Commit
f0d43bc9
authored
Feb 05, 2020
by
Joseph Mirabel
Committed by
GitHub
Feb 05, 2020
Browse files
Merge pull request #59 from florent-lamiraux/suffix-so-file
Add Cmake option to deactivate suffix of so files.
parents
70864112
727a3003
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
f0d43bc9
...
...
@@ -170,7 +170,13 @@ target_include_directories(${PROJECT_NAME}
$<INSTALL_INTERFACE:include>
)
SET_TARGET_PROPERTIES
(
${
PROJECT_NAME
}
PROPERTIES SOVERSION
${
PROJECT_VERSION
}
)
OPTION
(
SUFFIX_SO_VERSION
"Suffix shared library name by a string depending on git status of project"
ON
)
IF
(
${
SUFFIX_SO_VERSION
}
EQUAL
"ON"
)
SET_TARGET_PROPERTIES
(
${
PROJECT_NAME
}
PROPERTIES SOVERSION
${
PROJECT_VERSION
}
)
ENDIF
()
IF
(
UNIX
)
TARGET_LINK_LIBRARIES
(
${
PROJECT_NAME
}
${
CMAKE_DL_LIBS
}
pthread
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment