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

cmake, add check on FUZZ_LDFLAGS #846

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Conversation

dacav
Copy link
Contributor

@dacav dacav commented Dec 6, 2024

Triviality, but it avoids triggering more "obscure" errors.

@dacav dacav requested a review from LDVG December 6, 2024 10:14
Copy link
Contributor

@LDVG LDVG left a comment

Choose a reason for hiding this comment

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

A few minor comments.

If we go for the below logic change, would fuzz: assert non-empty FUZZ_LDFLAGS (or cmake: ...) perhaps be a slightly more descriptive commit message?

fuzz/CMakeLists.txt Outdated Show resolved Hide resolved
fuzz/CMakeLists.txt Outdated Show resolved Hide resolved
The invocation of cmake with -DFUZZ=ON will produce an error:

    set_target_properties called with incorrect number of arguments.

The error is due to the fact that the FUZZ_LDFLAGS variable needs
to be defined and non-empty to be correctly supplied in the
set_target_properties() invocations that follow the introduced
assertion.

See also:
https://cmake.org/cmake/help/latest/command/set_target_properties.html
@LDVG LDVG merged commit f1ef49b into Yubico:main Dec 6, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants