Skip to content

cmake optimization

This addresses two issues:

  • properly depend on inkscape-version.cpp (changes to this file were only picked up on the next build, but not the current build).
  • do not build tests for default target to speed up incremental builds (i.e. when debugging)

Last point needs some fixes to account for how CI is implemented on Linux (i.e. running tests in a separate job). I think I'll solve this by adding an additional cmake target (i.e. tests) which builds tests. Our current check target can depend on this target to automatically build tests when running make check, as for the (non-official) make test you'd have to remember to run make tests first.

Edited by username-removed-945074

Merge request reports