Skip to content

cmake: generate LIBSSH2_PC_LIBS_PRIVATE dynamically - #1466

Closed
vszakats wants to merge 7 commits into
libssh2:masterfrom
vszakats:cm-dyn-LIBSSH2_PC_LIBS_PRIVATE
Closed

vszakats wants to merge 7 commits into
libssh2:masterfrom
vszakats:cm-dyn-LIBSSH2_PC_LIBS_PRIVATE

Conversation

@vszakats

@vszakats vszakats commented Oct 4, 2024 •

Copy link
Copy Markdown
Member

Generate LIBSSH2_PC_LIBS_PRIVATE from LIBSSH2_LIBS.

Also add extra libdirs (-L) to Libs and Libs.private.

Logic copied from curl.

@vszakats vszakats added the build label Oct 4, 2024
Except for passing LDFLAGS in a separate variable.
This will need coordination with autotools.
@vszakats
vszakats force-pushed the cm-dyn-LIBSSH2_PC_LIBS_PRIVATE branch from bf0c9e4 to 4a143da Compare October 4, 2024 00:54
@vszakats vszakats closed this in c87f129 Oct 4, 2024
@vszakats
vszakats deleted the cm-dyn-LIBSSH2_PC_LIBS_PRIVATE branch October 4, 2024 09:25
vszakats added a commit that referenced this pull request Oct 4, 2024
vszakats added a commit that referenced this pull request Jul 13, 2025
- Reworking the `Libs.private` collector logic for INTERFACE targets,
  broke the original lib order. Fix it by going back a single loop
  to retain order.
  Follow-up to df0563a #1535

- Implement the above with one change: move implicit CMake libs
  to the end of the list (was: the beginning).
  I expect these to be libs that any custom libs may depend on,
  like system libs, C runtime, compiler runtime lib.
  Follow-up to c87f129 #1466

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant