Skip to content

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented Mar 7, 2025

Apply downstream patches from the vcpkg project:

  • cmake: remove duplicates from CURL_LIBDIRS.

  • cmake: set CURL_LIBDIRS as INTERFACE_LINK_DIRECTORIES for static
    libcurl.
    To support CMake <3.13, change downstream patch from:

    target_link_directories(${LIB_STATIC} INTERFACE ${CURL_LIBDIRS})

    to:

    set_target_properties(${LIB_STATIC} PROPERTIES [...] INTERFACE_LINK_DIRECTORIES "${CURL_LIBDIRS}")

Co-authored-by: Kai Pastor
Ref: microsoft/vcpkg#43819


vszakats added 2 commits March 7, 2025 13:02
…DIRS

Requires CMake 3.13, meaning it should be effective there or above
but not supposed to break earlier versions just by adding this property.
@vszakats vszakats added the cmake label Mar 7, 2025
@github-actions github-actions bot added the build label Mar 7, 2025
@vszakats vszakats changed the title cmake: CURL_LIBDIRS improvements (upstreamed from the vcpkg project) cmake: CURL_LIBDIRS improvements (upstreamed from vcpkg) Mar 7, 2025
@vszakats vszakats closed this in 0ead361 Mar 7, 2025
@vszakats vszakats deleted the cm-libdirs branch March 7, 2025 12:49
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
Apply downstream patches from the vcpkg project:

- cmake: remove duplicates from `CURL_LIBDIRS`.

- cmake: set `CURL_LIBDIRS` as `INTERFACE_LINK_DIRECTORIES` for static
  libcurl.
  To support CMake <3.13, change downstream patch from:
  ```cmake
  target_link_directories(${LIB_STATIC} INTERFACE ${CURL_LIBDIRS})
  ```
  to:
  ```cmake
  set_target_properties(${LIB_STATIC} PROPERTIES [...] INTERFACE_LINK_DIRECTORIES "${CURL_LIBDIRS}")
  ```

Co-authored-by: Kai Pastor
Ref: microsoft/vcpkg#43819

Closes curl#16610
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant