mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-15 13:41:48 +08:00
7adc87efe1
* Added ClamAV port * Patch ClamAV's cmake files instead of doing things in portfile * Fix whitespace * Strip down package to really only build libclamav * Fix static build * Fix build on Linux * Remove libcurl linkage * fix copy-paste mistake * Disable static build * update version record Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
39 lines
1003 B
Diff
39 lines
1003 B
Diff
commit 59516af244a840aa95a8f15f978ac24ec97178cf
|
|
Author: jzaddach <jzaddach@cisco.com>
|
|
Date: Fri Nov 27 14:24:31 2020 +0100
|
|
|
|
Fix curl usage
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index e85d03e20..9f1cd42c5 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -685,7 +685,7 @@ endif()
|
|
|
|
add_subdirectory( libclamav )
|
|
|
|
-if(NOT LIBCLAMAV_ONLY)
|
|
+if(NOT ENABLE_LIBCLAMAV_ONLY)
|
|
add_subdirectory( shared )
|
|
|
|
add_subdirectory( libfreshclam )
|
|
diff --git a/shared/CMakeLists.txt b/shared/CMakeLists.txt
|
|
index d9c8b6bfe..30df5a1a4 100644
|
|
--- a/shared/CMakeLists.txt
|
|
+++ b/shared/CMakeLists.txt
|
|
@@ -59,9 +59,13 @@ target_link_libraries( shared_obj
|
|
PUBLIC
|
|
ClamAV::libclamav
|
|
ZLIB::ZLIB
|
|
- CURL::libcurl
|
|
OpenSSL::SSL
|
|
OpenSSL::Crypto )
|
|
+if(CURL_FOUND)
|
|
+ target_link_libraries( shared_obj
|
|
+ PUBLIC
|
|
+ CURL::libcurl )
|
|
+endif()
|
|
if(WIN32)
|
|
target_link_libraries( shared_obj
|
|
PUBLIC
|