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 CMake build for missing libraries #4801

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

fmarco76
Copy link
Member

The test for jackson and resteasy library was failing because the variable is undefined when the libraries are not provided with the package.
Since CMake test works with variables considering false when the variable is undefined the all the is statements have been modified to check if the variable is defined.

https://cmake.org/cmake/help/latest/command/if.html#variable

Error example available here: https://github.com/dogtagpki/pki/pull/4800/checks?check_run_id=27329408722

@fmarco76 fmarco76 requested a review from edewata July 11, 2024 15:46
Copy link

sonarcloud bot commented Jul 11, 2024

@fmarco76
Copy link
Member Author

@edewata The test still fails but in a following step. I'll do some investigation for this or following PR

Copy link
Contributor

@edewata edewata left a comment

Choose a reason for hiding this comment

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

Just one comment but it looks cleaner. Thanks!

# use system JARs

else()
Copy link
Contributor

Choose a reason for hiding this comment

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

The else() should be above the use system JARs comment.

The test for jackson and resteasy library was failing because the
variable is undefined when the libraries are not provided with the
package.
Since CMake test works with variables considering false when the
variable is undefined the all the is statements have been modified to
check if the variable is defined.

https://cmake.org/cmake/help/latest/command/if.html#variable
@fmarco76
Copy link
Member Author

@edewata Thanks! I am merging this and look at the remaining problems in a following PR

@fmarco76 fmarco76 merged commit 3296004 into dogtagpki:master Jul 11, 2024
22 of 28 checks passed
@fmarco76 fmarco76 deleted the FixCMakeBuild branch July 11, 2024 16:34
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