Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build problems in absence of cmocka #43

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

nayakned
Copy link
Collaborator

Updated CMake build to selectively build unit tests and check for availability of cmocka library.

…ilability of cmocka library.

Signed-off-by: Naresh Nayak <Naresh.Nayak@de.bosch.com>
@nayakned
Copy link
Collaborator Author

Should fix #38 #42

Copy link
Collaborator

@SebastianSchildt SebastianSchildt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried on a "nacked" ubuntu docker with build-essential and cmake installed

  1. Building with default options -> builds successfully
  2. Configure with cmake .. -DUNIT_TESTING=onwith fails with missing cmocka package
  3. install cmocka as in the readme
  4. Configure with unit testing again and building -> Works

Looking good! 👍

@nayakned nayakned merged commit debe4e5 into COVESA:main Sep 19, 2024
1 check passed
@nayakned nayakned deleted the fix/cmocka-dependency branch September 19, 2024 11:11
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.

2 participants