Skip to content

Skip unit test builds for simlibs_debug and simlibs_release#147

Merged
jonyMarino merged 1 commit intomainfrom
fix/build_tests_when_needed
May 7, 2026
Merged

Skip unit test builds for simlibs_debug and simlibs_release#147
jonyMarino merged 1 commit intomainfrom
fix/build_tests_when_needed

Conversation

@jonyMarino
Copy link
Copy Markdown
Contributor

Fixes: #

About

This PR updates the simlibs build flow so simlibs_debug and simlibs_release only build/package the sim libraries and no longer build unit test executables as part of the default CMake build target.

The unit test executables are now marked with EXCLUDE_FROM_ALL, which keeps them out of the default cmake --build invocation used by simlibs_debug and simlibs_release.

The explicit test targets still work:

  • test_simlibs_debug
  • test_simlibs_release

Those targets now build the new simlibs_unit_tests target before running ctest, preserving the existing test workflow when tests are requested directly.

How Has This Been Tested?

  • Verified the CMake/test target changes statically.
  • Verified all simlibs unit test executables are excluded from the default build target.
  • Ran git diff --check successfully.

Screenshots and videos (if appropriate):

N/A

@jonyMarino jonyMarino merged commit 3fc2e18 into main May 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant