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
eigenpy
Commits
cbbaad1a
Unverified
Commit
cbbaad1a
authored
Jul 03, 2020
by
Justin Carpentier
Committed by
GitHub
Jul 03, 2020
Browse files
Merge pull request #201 from nim65s/devel
[CMake] Add SUFFIX_SO_VERSION
parents
ab0fd2c1
d2018f7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
cbbaad1a
...
...
@@ -45,6 +45,7 @@ ENDIF(WIN32)
# --- OPTIONS ---------------------------------------
# ----------------------------------------------------
OPTION
(
INSTALL_DOCUMENTATION
"Generate and install the documentation"
FALSE
)
OPTION
(
SUFFIX_SO_VERSION
"Suffix library name with its version"
OFF
)
IF
(
DEFINED BUILD_UNIT_TESTS
)
MESSAGE
(
AUTHOR_WARNING
"BUILD_UNIT_TESTS is deprecated. Use BUILD_TESTING instead.\
...
...
@@ -176,6 +177,10 @@ TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME}
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_BINARY_DIR
}
/include>
$<INSTALL_INTERFACE:include>
)
IF
(
SUFFIX_SO_VERSION
)
SET_TARGET_PROPERTIES
(
${
PROJECT_NAME
}
PROPERTIES SOVERSION
${
PROJECT_VERSION
}
)
ENDIF
(
SUFFIX_SO_VERSION
)
IF
(
NOT WIN32
)
TARGET_COMPILE_OPTIONS
(
${
PROJECT_NAME
}
PRIVATE $<$<CXX_COMPILER_ID:MSVC>:-bigobj>
"-Wno-conversion"
)
ELSE
()
...
...
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