File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
google/cloud/bigquery_unified Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ find_package(google_cloud_cpp_bigquery REQUIRED)
2222find_package (google_cloud_cpp_bigquerycontrol REQUIRED)
2323find_package (Arrow REQUIRED)
2424
25+ # Generate the version information from the CMake values.
26+ configure_file (internal /version_info.h.in
27+ ${CMAKE_CURRENT_SOURCE_DIR} /internal /version_info.h)
28+
2529function (bigquery_unified_library library_name library_alias)
2630 cmake_parse_arguments (_opt "EXPERIMENTAL;TRANSITION;INSTALL" "INITIAL_YEAR"
2731 "LIBRARY_FILES;DEPS;PKGCONFIG_DEPS" ${ARGN} )
Original file line number Diff line number Diff line change 1+ // Copyright 2024 Google LLC
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // https://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ // See the License for the specific language governing permissions and
13+ // limitations under the License.
14+
15+ #ifndef GOOGLE_CLOUD_CPP_BIGQUERY_GOOGLE_CLOUD_BIGQUERY_UNIFIED_INTERNAL_VERSION_INFO_H
16+ #define GOOGLE_CLOUD_CPP_BIGQUERY_GOOGLE_CLOUD_BIGQUERY_UNIFIED_INTERNAL_VERSION_INFO_H
17+
18+ // NOLINTNEXTLINE(modernize-macro-to-enum)
19+ #define GOOGLE_CLOUD_CPP_BIGQUERY_VERSION_MAJOR @PROJECT_VERSION_MAJOR@
20+ // NOLINTNEXTLINE(modernize-macro-to-enum)
21+ #define GOOGLE_CLOUD_CPP_BIGQUERY_VERSION_MINOR @PROJECT_VERSION_MINOR@
22+ // NOLINTNEXTLINE(modernize-macro-to-enum)
23+ #define GOOGLE_CLOUD_CPP_BIGQUERY_VERSION_PATCH @PROJECT_VERSION_PATCH@
24+ #define GOOGLE_CLOUD_CPP_BIGQUERY_VERSION_PRE_RELEASE "@PROJECT_VERSION_PRE_RELEASE@"
25+
26+ #endif // GOOGLE_CLOUD_CPP_BIGQUERY_GOOGLE_CLOUD_BIGQUERY_UNIFIED_INTERNAL_VERSION_INFO_H
You can’t perform that action at this time.
0 commit comments