1
0
mirror of https://github.com/altlinux/admc.git synced 2025-03-17 02:50:12 +03:00

use target_include_directories

\instead of set_target_properties INTERFACE_INCLUDE_DIRECTORIES
This commit is contained in:
Dmitry Degtyarev 2020-09-10 13:50:45 +04:00
parent 42f60de1b2
commit 925f529fe7
2 changed files with 6 additions and 4 deletions

View File

@ -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()

View File

@ -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()