Skip to content

Commit ae48ad8

Browse files
authored
fix: experimental bigquery iam cmake target installation (#7151)
1 parent 5d6bd47 commit ae48ad8

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

google/cloud/bigquery/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ set_target_properties(
6969
PROPERTIES EXPORT_NAME google-cloud-cpp::bigquery VERSION
7070
"${PROJECT_VERSION}"
7171
SOVERSION "${PROJECT_VERSION_MAJOR}")
72-
set_target_properties(
73-
google_cloud_cpp_bigquery
74-
PROPERTIES EXPORT_NAME google-cloud-cpp::experimental-bigquery
75-
VERSION "${PROJECT_VERSION}" SOVERSION
76-
"${PROJECT_VERSION_MAJOR}")
7772
target_compile_options(google_cloud_cpp_bigquery
7873
PUBLIC ${GOOGLE_CLOUD_CPP_EXCEPTIONS_FLAG})
7974

google/cloud/bigquery/config.cmake.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,12 @@ find_dependency(google_cloud_cpp_grpc_utils)
2020
find_dependency(absl)
2121

2222
include("${CMAKE_CURRENT_LIST_DIR}/google_cloud_cpp_bigquery-targets.cmake")
23+
24+
add_library(google-cloud-cpp::experimental-bigquery IMPORTED INTERFACE)
25+
set_target_properties(google-cloud-cpp::experimental-bigquery PROPERTIES
26+
INTERFACE_LINK_LIBRARIES "google-cloud-cpp::bigquery")
27+
if (CMAKE_VERSION VERSION_GREATER 3.17)
28+
set_target_properties(google-cloud-cpp::experimental-bigquery PROPERTIES
29+
DEPRECATION
30+
"This target will be removed on or about 2021-09-01, please use google-cloud-cpp::bigquery instead")
31+
endif()

google/cloud/iam/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ set_target_properties(
8484
google_cloud_cpp_iam
8585
PROPERTIES EXPORT_NAME google-cloud-cpp::iam VERSION "${PROJECT_VERSION}"
8686
SOVERSION "${PROJECT_VERSION_MAJOR}")
87-
set_target_properties(
88-
google_cloud_cpp_iam
89-
PROPERTIES EXPORT_NAME google-cloud-cpp::experimental-iam
90-
VERSION "${PROJECT_VERSION}" SOVERSION
91-
"${PROJECT_VERSION_MAJOR}")
9287
target_compile_options(google_cloud_cpp_iam
9388
PUBLIC ${GOOGLE_CLOUD_CPP_EXCEPTIONS_FLAG})
9489

google/cloud/iam/config.cmake.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,12 @@ find_dependency(google_cloud_cpp_grpc_utils)
2020
find_dependency(absl)
2121

2222
include("${CMAKE_CURRENT_LIST_DIR}/google_cloud_cpp_iam-targets.cmake")
23+
24+
add_library(google-cloud-cpp::experimental-iam IMPORTED INTERFACE)
25+
set_target_properties(google-cloud-cpp::experimental-iam PROPERTIES
26+
INTERFACE_LINK_LIBRARIES "google-cloud-cpp::iam")
27+
if (CMAKE_VERSION VERSION_GREATER 3.17)
28+
set_target_properties(google-cloud-cpp::experimental-iam PROPERTIES
29+
DEPRECATION
30+
"This target will be removed on or about 2021-09-01, please use google-cloud-cpp::iam instead")
31+
endif()

0 commit comments

Comments
 (0)