Loading editor/CMakeLists.txt +16 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,22 @@ if(NOT TARGET LibArchive::LibArchive) target_link_libraries(blogi-editor PRIVATE ${LibArchive_LIBRARIES}) endif() if(LibArchive_LIBRARY MATCHES "\\.a$") # A static libarchive doesn't carry its own transitive deps into the # final link the way libarchive.so would (its zstd/crypto filters need # ZSTD_*/EVP_* supplied explicitly). find_package's own CMake module # has no notion of this (unlike a .pc file's Libs.private), so add them # ourselves. No-op wherever libarchive is linked as a shared library. find_library(ZSTD_LIBRARY zstd) if(ZSTD_LIBRARY) target_link_libraries(blogi-editor PRIVATE ${ZSTD_LIBRARY}) endif() find_package(OpenSSL QUIET) if(OpenSSL_FOUND) target_link_libraries(blogi-editor PRIVATE OpenSSL::Crypto) endif() endif() add_subdirectory(widgets) if(NOT TARGET blogidev) Loading Loading
editor/CMakeLists.txt +16 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,22 @@ if(NOT TARGET LibArchive::LibArchive) target_link_libraries(blogi-editor PRIVATE ${LibArchive_LIBRARIES}) endif() if(LibArchive_LIBRARY MATCHES "\\.a$") # A static libarchive doesn't carry its own transitive deps into the # final link the way libarchive.so would (its zstd/crypto filters need # ZSTD_*/EVP_* supplied explicitly). find_package's own CMake module # has no notion of this (unlike a .pc file's Libs.private), so add them # ourselves. No-op wherever libarchive is linked as a shared library. find_library(ZSTD_LIBRARY zstd) if(ZSTD_LIBRARY) target_link_libraries(blogi-editor PRIVATE ${ZSTD_LIBRARY}) endif() find_package(OpenSSL QUIET) if(OpenSSL_FOUND) target_link_libraries(blogi-editor PRIVATE OpenSSL::Crypto) endif() endif() add_subdirectory(widgets) if(NOT TARGET blogidev) Loading