Merge pull request #2929 from linquize/zip

Zip and SevenZip do not depend on Util, XML, JSON
This commit is contained in:
Günter Obiltschnig 2020-05-05 11:33:42 +02:00 committed by GitHub
commit daa729c66e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2 additions and 19 deletions

View File

@ -274,16 +274,6 @@ if(ENABLE_POCODOC)
set(ENABLE_CPPPARSER ON CACHE BOOL "Enable C++ parser" FORCE)
endif()
if(ENABLE_SEVENZIP OR ENABLE_ZIP)
set(ENABLE_UTIL ON CACHE BOOL "Enable Util" FORCE)
set(ENABLE_XML ON CACHE BOOL "Enable XML" FORCE)
endif()
if(ENABLE_UTIL AND ENABLE_TESTS)
set(ENABLE_JSON ON CACHE BOOL "Enable JSON" FORCE)
set(ENABLE_XML ON CACHE BOOL "Enable XML" FORCE)
endif()
if(ENABLE_JWT)
set(ENABLE_CRYPTO ON CACHE BOOL "Enable Crypto" FORCE)
set(ENABLE_JSON ON CACHE BOOL "Enable JSON" FORCE)

View File

@ -62,7 +62,7 @@ set_target_properties(SevenZip
DEFINE_SYMBOL SevenZip_EXPORTS
)
target_link_libraries(SevenZip PUBLIC Poco::Util Poco::XML)
target_link_libraries(SevenZip PUBLIC Poco::Foundation)
target_include_directories(SevenZip
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>

View File

@ -1,4 +1 @@
Foundation
Util
XML
JSON

View File

@ -21,7 +21,7 @@ set_target_properties(Zip
DEFINE_SYMBOL Zip_EXPORTS
)
target_link_libraries(Zip PUBLIC Poco::Util Poco::XML)
target_link_libraries(Zip PUBLIC Poco::Foundation)
target_include_directories(Zip
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>

View File

@ -1,5 +1 @@
Foundation
Net
Util
XML
JSON