Skip to content

src/adldap/CMakeLists.txt: Improve the libsasl2 check#454

Open
artyom-poptsov wants to merge 1 commit into
altlinux:masterfrom
artyom-poptsov:avp-fix-check-for-libsasl2
Open

src/adldap/CMakeLists.txt: Improve the libsasl2 check#454
artyom-poptsov wants to merge 1 commit into
altlinux:masterfrom
artyom-poptsov:avp-fix-check-for-libsasl2

Conversation

@artyom-poptsov

Copy link
Copy Markdown

Without "libsasl2" installed the compilation process always fails with an error due to missing "sasl/sasl.h". However, in the current situation cmake configuration script does not produce a clear message that "libsasl2" is missing and keeps going, producing a proper Makefile. This patch fixes such behavior by adding a proper prefix parameter for "pkg_check_modules" in the "libsasl2" check which makes the configuration script to bail out earlier with a clear error.

  • src/adldap/CMakeLists.txt: Add prefix parameter for "pkg_check_modules" in the "libsasl2" check.

Without "libsasl2" installed the compilation process always fails with an error
due to missing "sasl/sasl.h".  However, in the current situation cmake
configuration script does not produce a clear message that "libsasl2" is missing
and keeps going, producing a proper Makefile.  This patch fixes such behavior by
adding a proper prefix parameter for "pkg_check_modules" in the "libsasl2" check
which makes the configuration script to bail out earlier with a clear error.

* src/adldap/CMakeLists.txt: Add prefix parameter for "pkg_check_modules" in
the "libsasl2" check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant