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: fix libclamav-only mode build when tests are enable #714

Merged

Conversation

micahsnyder
Copy link
Contributor

CMake's configuration step fails if you use ENABLE_LIBCLAMAV_ONLY=ON and ENABLE_TESTS=ON. This is because we try to add the libcurl module path to the test environment, for the sake of linking with the Rust unit test program, as we do with the other dependencies. However, libcurl is not required or even found in libclamav-only mode. So that fails.

CMake's configuration step fails if you use ENABLE_LIBCLAMAV_ONLY=ON and
ENABLE_TESTS=ON. This is because we try to add the libcurl module path
to the test environment, for the sake of linking with the Rust unit test
program, as we do with the other dependencies. However, libcurl is not
required or even found in libclamav-only mode. So that fails.
@micahsnyder micahsnyder force-pushed the CLAM-2126-libclamav-only-with-tests branch from faac3f2 to 8546a11 Compare October 21, 2022 23:03
@micahsnyder
Copy link
Contributor Author

Rebased and force-pushed.

@micahsnyder micahsnyder merged commit 863cd51 into Cisco-Talos:main Oct 22, 2022
@micahsnyder micahsnyder deleted the CLAM-2126-libclamav-only-with-tests branch October 22, 2022 02:07
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