Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Jan 2, 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 #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
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