Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4,109
    • Issues 4,109
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Issues
  • #11367
Closed
Open
Issue created Oct 25, 2010 by Kitware Robot@kwrobotOwner

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 Jan 30, 2019 by Brad King
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking