mirror of
https://github.com/curl/curl.git
synced 2026-08-26 13:03:32 +03:00
cmake: tidy-up NOT_NEED_LBER_H detection
Follow-up to 772f0d8edf #12006
This commit is contained in:
parent
75078a415d
commit
4e8a3a1fc8
1 changed files with 2 additions and 5 deletions
|
|
@ -808,8 +808,7 @@ if(NOT CURL_DISABLE_LDAP)
|
||||||
list(APPEND CMAKE_REQUIRED_LIBRARIES ${CMAKE_LBER_LIB})
|
list(APPEND CMAKE_REQUIRED_LIBRARIES ${CMAKE_LBER_LIB})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(_SRC_STRING
|
check_c_source_compiles("
|
||||||
"
|
|
||||||
${_INCLUDE_STRING}
|
${_INCLUDE_STRING}
|
||||||
int main(int argc, char ** argv)
|
int main(int argc, char ** argv)
|
||||||
{
|
{
|
||||||
|
|
@ -817,9 +816,7 @@ if(NOT CURL_DISABLE_LDAP)
|
||||||
BerElement *bep = ber_init(bvp);
|
BerElement *bep = ber_init(bvp);
|
||||||
ber_free(bep, 1);
|
ber_free(bep, 1);
|
||||||
return 0;
|
return 0;
|
||||||
}"
|
}" NOT_NEED_LBER_H)
|
||||||
)
|
|
||||||
check_c_source_compiles("${_SRC_STRING}" NOT_NEED_LBER_H)
|
|
||||||
if(NOT_NEED_LBER_H)
|
if(NOT_NEED_LBER_H)
|
||||||
set(NEED_LBER_H OFF)
|
set(NEED_LBER_H OFF)
|
||||||
else()
|
else()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue