Skip to content

cmake/FindLDAP: avoid framework locations for libs too (Apple) - #15895

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:cm-findldap-macos
Closed

vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:cm-findldap-macos

Conversation

@vszakats

@vszakats vszakats commented Jan 2, 2025 •

Copy link
Copy Markdown
Member

We already avoid system framework paths while looking for LDAP headers
to avoid issues.

Do the same while looking for LDAP libraries. This makes sure to find
the regular ldap library (libldap.tbd) instead of picking up
ldap.framework and let that seep into libcurl.pc with a full path.

This makes LDAP detection work on Apple as before introducing FindLDAP.

Follow-up to 49f2a23 #15273

We already avoid system framework paths while looking for LDAP headers
to avoid issues.

Do the same while looking for LDAP libraries. This makes sure to find
the regular ldap library (`libldap.tbd`) instead of picking up
`ldap.framework` and let that seep into `libcurl.pc` with a full path.

This restores how LDAP detection worked on Apple before introducing
FindLDAP.

Follow-up to 49f2a23 curl#15273
@vszakats vszakats added cmake LDAP appleOS specific to an Apple operating system labels Jan 2, 2025
@github-actions github-actions Bot added the build label Jan 2, 2025
@vszakats vszakats closed this in 772b693 Jan 2, 2025
@vszakats
vszakats deleted the cm-findldap-macos branch January 2, 2025 11:57
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
We already avoid system framework paths while looking for LDAP headers
to avoid issues.

Do the same while looking for LDAP libraries. This makes sure to find
the regular ldap library (`libldap.tbd`) instead of picking up
`ldap.framework` and let that seep into `libcurl.pc` with a full path.

This makes LDAP detection work on Apple as before introducing FindLDAP.

Follow-up to 49f2a23 curl#15273
Closes curl#15895
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

appleOS specific to an Apple operating system build cmake LDAP

Development

Successfully merging this pull request may close these issues.

1 participant