Skip to content

Resolve "fix(build): install should not always copy header files"

Description

This prevents rebuilding a child repository each time sight is installed. To achieve this, a custom target was added to generate the library headers without *_API macros in the build folder, and then copy these at install. Previously, we modified the files directly in the install folders, which led to always modify the timestamp of the headers, thus triggering the rebuild.

Closes #1006 (closed)

How to test it?

  • Install Sight
  • Build your project
  • Install Sight again: in the log, observe header files are not copied and marked as already up-to-date
  • Build your project again: observe nothing is rebuilt
Edited by Flavien BRIDAULT

Merge request reports