Clean up target_include_directories() (#3641)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
parent
e65ea2f71f
commit
3ec224eaf6
@ -82,7 +82,6 @@ target_include_directories(
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
${azure-core-cpp_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
target_link_libraries(azure-identity PUBLIC Azure::azure-core)
|
||||
|
||||
@ -73,11 +73,9 @@ target_include_directories(
|
||||
azure-security-keyvault-certificates
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
|
||||
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/../../../sdk/core/inc>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/build/sdk/core/azure-core/inc>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
)
|
||||
message($<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc)
|
||||
|
||||
# Include shared source code
|
||||
# NOTE: Use shared-code only within .cpp files. DO NEVER consume the shared-code from header files.
|
||||
target_include_directories(
|
||||
|
||||
@ -112,8 +112,6 @@ target_include_directories(
|
||||
azure-security-keyvault-keys
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
|
||||
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/../../../sdk/core/inc>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/build/sdk/core/azure-core/inc>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
)
|
||||
|
||||
|
||||
@ -83,8 +83,6 @@ target_include_directories(
|
||||
azure-security-keyvault-secrets
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
|
||||
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/../../../sdk/core/inc>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/build/sdk/core/azure-core/inc>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
)
|
||||
|
||||
|
||||
@ -60,12 +60,9 @@ target_include_directories(
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
# Disable dependency on azure-core until azure-core has released to vcpkg
|
||||
# ${azure-core-cpp_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
# Disable dependency on azure-core until azure-core has released to vcpkg
|
||||
# target_link_libraries(azure-template PUBLIC Azure::azure-core)
|
||||
target_link_libraries(azure-template PUBLIC Azure::azure-core)
|
||||
|
||||
# make sure that users can consume the project as a library.
|
||||
add_library(Azure::azure-template ALIAS azure-template)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user