aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/protobuf-config.cmake.in
blob: f11796a47dc20b6c5284ddda200233363babc395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Version info variables
set(PROTOBUF_VERSION        "@protobuf_VERSION@")
set(PROTOBUF_VERSION_STRING "@protobuf_VERSION_STRING@")

# Imported targets
include("${CMAKE_CURRENT_LIST_DIR}/protobuf-targets.cmake")

# Compute the installation prefix relative to this file.
get_filename_component(_PROTOBUF_IMPORT_PREFIX
  "${_PROTOBUF_PACKAGE_PREFIX}" PATH)
get_filename_component(_PROTOBUF_IMPORT_PREFIX
  "${_PROTOBUF_IMPORT_PREFIX}" PATH)
get_filename_component(_PROTOBUF_IMPORT_PREFIX
  "${_PROTOBUF_IMPORT_PREFIX}" PATH)

# CMake FindProtobuf module compatible file
if(NOT DEFINED PROTOBUF_MODULE_COMPATIBLE OR "${PROTOBUF_MODULE_COMPATIBLE}")
  include("${_PROTOBUF_PACKAGE_PREFIX}/protobuf-module.cmake")
endif()