Skip to content

cmake --install should only install raven, not dependent libraries #78

@jminor

Description

@jminor

If you run cmake --install . after building raven, it installs the raven executable, and all the dependent libraries in /usr/local/ even though we statically link those libraries into the raven executable. Instead, only the executable should be installed.

Example:

~/git/raven/build ⭐ sudo cmake --install .
Password:
-- Install configuration: "Release"
-- Installing: /usr/local/bin/raven
-- Installing: /usr/local/include/Imath/ImathConfig.h
-- Installing: /usr/local/lib/pkgconfig/Imath.pc
-- Installing: /usr/local/lib/cmake/Imath/ImathConfig.cmake
-- Installing: /usr/local/lib/cmake/Imath/ImathConfigVersion.cmake
-- Old export file "/usr/local/lib/cmake/Imath/ImathTargets.cmake" will be replaced.  Removing files [/usr/local/lib/cmake/Imath/ImathTargets-debug.cmake, /usr/local/lib/cmake/Imath/ImathTargets-release.cmake].
-- Installing: /usr/local/lib/cmake/Imath/ImathTargets.cmake
-- Installing: /usr/local/lib/cmake/Imath/ImathTargets-release.cmake
-- Installing: /usr/local/lib/libImath-3_2.a
-- Installing: /usr/local/include/Imath/half.h
-- Up-to-date: /usr/local/include/Imath/halfFunction.h
-- Up-to-date: /usr/local/include/Imath/halfLimits.h
-- Up-to-date: /usr/local/include/Imath/ImathBox.h
-- Up-to-date: /usr/local/include/Imath/ImathBoxAlgo.h
...etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions