X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2FCMakeLists.txt;h=e571708cbf938e6759f8d29bb6d370a00d6bd041;hp=b7858f9309be18183d0d6775f585c97e6114a465;hb=bad087a1b604c92c7c0bf3cf818b81d26e15c1c4;hpb=53f09c31bd4e59ffc1830660aebb221f52b06a6f diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index b7858f93..e571708c 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -55,11 +55,10 @@ if (HAVE_UMASK) set_source_files_properties(oidentdconfiggenerator.cpp PROPERTIES COMPILE_DEFINITIONS HAVE_UMASK) endif() -if (LDAP_FOUND) +if (Ldap_FOUND) target_sources(${TARGET} PRIVATE ldapauthenticator.cpp) - target_link_libraries(${TARGET} PRIVATE ${LDAP_LIBRARIES}) - target_include_directories(${TARGET} PRIVATE ${LDAP_INCLUDE_DIR}) - target_compile_definitions(${TARGET} PRIVATE -DHAVE_LDAP) + target_link_libraries(${TARGET} PRIVATE Ldap::Ldap) + set_source_files_properties(core.cpp PROPERTIES COMPILE_DEFINITIONS HAVE_LDAP) endif() if (Qca-qt5_FOUND)