diff --git a/cmake/FindLdap.cmake b/cmake/FindLdap.cmake index e16c1681..3e0b2b20 100644 --- a/cmake/FindLdap.cmake +++ b/cmake/FindLdap.cmake @@ -56,7 +56,8 @@ if(Ldap_FOUND AND NOT TARGET Ldap::Ldap) lber ) - set_target_properties(Ldap::Ldap PROPERTIES - INTERFACE_INCLUDE_DIRECTORIES "${Ldap_INCLUDE_DIRS}" + target_include_directories(Ldap::Ldap + INTERFACE + ${Ldap_INCLUDE_DIRS} ) endif() diff --git a/cmake/FindSmbclient.cmake b/cmake/FindSmbclient.cmake index b6a0ebd6..8090be16 100644 --- a/cmake/FindSmbclient.cmake +++ b/cmake/FindSmbclient.cmake @@ -46,7 +46,8 @@ if(Smbclient_FOUND AND NOT TARGET Smbclient::Smbclient) smbclient ) - set_target_properties(Smbclient::Smbclient PROPERTIES - INTERFACE_INCLUDE_DIRECTORIES "${Smbclient_INCLUDE_DIRS}" + target_include_directories(Smbclient::Smbclient + INTERFACE + ${Smbclient_INCLUDE_DIRS} ) endif()