Skip to content

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented Feb 1, 2025

We set this macro to silence a warning inside openldap.h. With this
warning now silenced by using -isystem, we can drop it. Also it never
had to be set to 1.

Also enable OpenLDAP in a CMake GHA/macos job.

Follow-up to 445fb81 #14763
Follow-up to 751e168 #12024

`lib/ldap.c` sets this macro in source for non-OpenLDAP with all build
systems.

Follow-up to 751e168 curl#12024
This reverts commit be33bb6.

It does, but the warning no longer shows since switching to -isystem.
That's why autotools did not need it.
@vszakats vszakats added cmake LDAP CI Continuous Integration labels Feb 1, 2025
@testclutch

This comment was marked as outdated.

@vszakats vszakats changed the title cmake: drop LDAP_DEPRECATED=1 macro to sync with autotools cmake: drop LDAP_DEPRECATED=1 macro, to sync with autotools Feb 2, 2025
@vszakats vszakats closed this in ffd6132 Feb 6, 2025
@vszakats vszakats deleted the cm-ldap-deprec-macro-drop branch February 6, 2025 23:08
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
We set this macro to silence a warning inside `openldap.h`. With this
warning now silenced by using `-isystem`, we can drop it. Also it never
had to be set to `1`.

Also enable OpenLDAP in a CMake GHA/macos job.

Follow-up to 445fb81 curl#14763
Follow-up to 751e168 curl#12024

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

Labels

CI Continuous Integration cmake LDAP

Development

Successfully merging this pull request may close these issues.

2 participants