Skip to content

CMake: fix libclamav-only mode build when tests are enable#714

Merged
val-ms merged 1 commit intoCisco-Talos:mainfrom
val-ms:CLAM-2126-libclamav-only-with-tests
Oct 22, 2022
Merged

CMake: fix libclamav-only mode build when tests are enable#714
val-ms merged 1 commit intoCisco-Talos:mainfrom
val-ms:CLAM-2126-libclamav-only-with-tests

Conversation

@val-ms
Copy link
Contributor

@val-ms val-ms commented Oct 7, 2022

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.

@val-ms val-ms requested a review from ragusaa October 7, 2022 15:35
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.
@val-ms val-ms force-pushed the CLAM-2126-libclamav-only-with-tests branch from faac3f2 to 8546a11 Compare October 21, 2022 23:03
@val-ms
Copy link
Contributor Author

val-ms commented Oct 21, 2022

Rebased and force-pushed.

@val-ms val-ms merged commit 863cd51 into Cisco-Talos:main Oct 22, 2022
@val-ms val-ms 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