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
d2018f7b
Commit
d2018f7b
authored
Jul 02, 2020
by
Guilhem Saurel
Browse files
[CMake] Add SUFFIX_SO_VERSION
fix #200
parent
ab0fd2c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
d2018f7b
...
...
@@ -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