OpenTimelineIO / OpenTimelineIO/raven

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

Open Beginner friendly
#78 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue help wanted
Dominant language
C++
Stars
140
Forks
28
Avg merge
14h 1m
Merged PRs (30d)
2

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the CMake install rules that are reached by cmake --install . after building raven. Reproduce the example and verify that installation places only the raven executable in /usr/local/bin, without dependent libraries, headers, or package configuration files.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.