setting CPACK_STRIP_FILES on Mac breaks binaries
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
If one sets CPACK_STRIP_FILES=1
and lets cpack strip binaries, it strips too much and prevents executables with dynamic libraries from working.
Docs for strip(1)
say adding -u -r
to strip fewer symbols is the maximum allowed for an exectuable that uses shared libraries.
Can cmake take care of this kind of detail for me, instead of me doing a
SET(CMAKE_STRIP "/usr/bin/strip -u -r -S" CACHE FILEPATH "" FORCE)
Edited by Brad King