mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
use -x flag to strip shared libraries on OSX (fixes #595)
This commit is contained in:
parent
0f294e26ac
commit
a9730be73c
@ -6,6 +6,12 @@ Changelog
|
|||||||
Starting with version 1.8.0, pybind11 releases use a `semantic versioning
|
Starting with version 1.8.0, pybind11 releases use a `semantic versioning
|
||||||
<http://semver.org>`_ policy.
|
<http://semver.org>`_ policy.
|
||||||
|
|
||||||
|
v2.0.2 (not yet released)
|
||||||
|
-----------------------------------------------------
|
||||||
|
|
||||||
|
* Use -x flag to strip shared libraries on OSX
|
||||||
|
`#595 <https://github.com/pybind/pybind11/pull/595>`_.
|
||||||
|
|
||||||
v2.0.1 (Jan 4, 2017)
|
v2.0.1 (Jan 4, 2017)
|
||||||
-----------------------------------------------------
|
-----------------------------------------------------
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ function(pybind11_add_module target_name)
|
|||||||
if(CMAKE_STRIP)
|
if(CMAKE_STRIP)
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
add_custom_command(TARGET ${target_name} POST_BUILD
|
add_custom_command(TARGET ${target_name} POST_BUILD
|
||||||
COMMAND ${CMAKE_STRIP} -u -r $<TARGET_FILE:${target_name}>)
|
COMMAND ${CMAKE_STRIP} -x $<TARGET_FILE:${target_name}>)
|
||||||
else()
|
else()
|
||||||
add_custom_command(TARGET ${target_name} POST_BUILD
|
add_custom_command(TARGET ${target_name} POST_BUILD
|
||||||
COMMAND ${CMAKE_STRIP} $<TARGET_FILE:${target_name}>)
|
COMMAND ${CMAKE_STRIP} $<TARGET_FILE:${target_name}>)
|
||||||
|
Loading…
Reference in New Issue
Block a user