Skip to content

latest cURL library has cmake hardcoded path for zstd #367

@bucanero

Description

@bucanero

in the latest curl library update, there's a hardcoded path /usr/local/vitasdk/arm-vita-eabi/lib/libzstd.a to zstd static library:

  • file: curl/lib/cmake/CURL/CURLTargets.cmake (lines 58 - 67)
# Create imported target CURL::libcurl_static
add_library(CURL::libcurl_static STATIC IMPORTED)

set_target_properties(CURL::libcurl_static PROPERTIES
  INTERFACE_COMPILE_DEFINITIONS "CURL_STATICLIB"
  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
  INTERFACE_LINK_DIRECTORIES ""
  INTERFACE_LINK_LIBRARIES "\$<LINK_ONLY:OpenSSL::SSL>;\$<LINK_ONLY:OpenSSL::Crypto>;\$<LINK_ONLY:ZLIB::ZLIB>;/usr/local/vitasdk/arm-vita-eabi/lib/libzstd.a"
)

If any SDK user has installed vita-sdk on a different path, using CURL with cmake will fail to build the project due to missing library, even if you have libzstd installed with vdpm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions