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
Guilhem Saurel
hpp-fcl
Commits
238492be
Commit
238492be
authored
Oct 22, 2019
by
Gabriele Buondonno
Browse files
[bindings] [CMakeLists] Use .so for Mac and .pyd for Windows
parent
42219849
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/CMakeLists.txt
View file @
238492be
...
...
@@ -54,5 +54,12 @@ SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES
PREFIX
""
LIBRARY_OUTPUT_NAME
${
LIBRARY_NAME
}
)
IF
(
APPLE
)
# We need to change the extension for python bindings
SET_TARGET_PROPERTIES
(
${
LIBRARY_NAME
}
PROPERTIES SUFFIX
".so"
)
ELSEIF
(
WIN32
)
SET_TARGET_PROPERTIES
(
${
LIBRARY_NAME
}
PROPERTIES SUFFIX
".pyd"
)
ENDIF
(
APPLE
)
INSTALL
(
TARGETS
${
LIBRARY_NAME
}
DESTINATION
${
PYTHON_SITELIB
}
)
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