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

build: Clean up compile_option after FindSanitizers module #2548

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

tchaikov
Copy link
Contributor

Unset the compile_option variable after it's used in the FindSanitizers module to prevent potential conflicts with other CMake build configurations. Previously, this variable persisted after find_package(Sanitizers), which could lead to unexpected build behavior if the same variable name was used elsewhere.

This change follows CMake best practices where Find modules clean up temporary variables after use.

Unset the `compile_option` variable after it's used in the FindSanitizers
module to prevent potential conflicts with other CMake build configurations.
Previously, this variable persisted after `find_package(Sanitizers)`,
which could lead to unexpected build behavior if the same variable name
was used elsewhere.

This change follows CMake best practices where Find modules clean up
temporary variables after use.

Signed-off-by: Kefu Chai <[email protected]>
@p12tic
Copy link
Contributor

p12tic commented Nov 25, 2024

Not part of the team, but LGTM.

@avikivity
Copy link
Member

Not part of the team, but LGTM.

All reviews are welcome.

@avikivity avikivity merged commit 7dbd974 into scylladb:master Nov 25, 2024
15 checks passed
@tchaikov tchaikov deleted the build-cleanup-temp-var branch November 26, 2024 00:55
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.

3 participants