Skip to content

Commit

Permalink
Clean up target_include_directories() (#3641)
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
  • Loading branch information
antkmsft and antkmsft authored May 17, 2022
1 parent e65ea2f commit 3ec224e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 12 deletions.
1 change: 0 additions & 1 deletion sdk/identity/azure-identity/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 0 additions & 2 deletions sdk/keyvault/azure-security-keyvault-keys/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)

Expand Down
2 changes: 0 additions & 2 deletions sdk/keyvault/azure-security-keyvault-secrets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)

Expand Down
5 changes: 1 addition & 4 deletions sdk/template/azure-template/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3ec224e

Please sign in to comment.