OLD | NEW |
1 # User options | 1 # Version info variables |
2 include("${CMAKE_CURRENT_LIST_DIR}/protobuf-options.cmake") | 2 set(PROTOBUF_VERSION "@protobuf_VERSION@") |
| 3 set(PROTOBUF_VERSION_STRING "@protobuf_VERSION_STRING@") |
3 | 4 |
4 # Depend packages | 5 # Current dir |
5 @_protobuf_FIND_ZLIB@ | 6 get_filename_component(_PROTOBUF_PACKAGE_PREFIX |
| 7 "${CMAKE_CURRENT_LIST_FILE}" PATH) |
6 | 8 |
7 # Imported targets | 9 # Imported targets |
8 include("${CMAKE_CURRENT_LIST_DIR}/protobuf-targets.cmake") | 10 include("${_PROTOBUF_PACKAGE_PREFIX}/protobuf-targets.cmake") |
| 11 |
| 12 # Compute the installation prefix relative to this file. |
| 13 get_filename_component(_PROTOBUF_IMPORT_PREFIX |
| 14 "${_PROTOBUF_PACKAGE_PREFIX}" PATH) |
| 15 get_filename_component(_PROTOBUF_IMPORT_PREFIX |
| 16 "${_PROTOBUF_IMPORT_PREFIX}" PATH) |
| 17 get_filename_component(_PROTOBUF_IMPORT_PREFIX |
| 18 "${_PROTOBUF_IMPORT_PREFIX}" PATH) |
9 | 19 |
10 # CMake FindProtobuf module compatible file | 20 # CMake FindProtobuf module compatible file |
11 if(protobuf_MODULE_COMPATIBLE) | 21 if(NOT DEFINED PROTOBUF_MODULE_COMPATIBLE OR "${PROTOBUF_MODULE_COMPATIBLE}") |
12 include("${CMAKE_CURRENT_LIST_DIR}/protobuf-module.cmake") | 22 include("${_PROTOBUF_PACKAGE_PREFIX}/protobuf-module.cmake") |
13 endif() | 23 endif() |
| 24 |
| 25 # Cleanup temporary variables. |
| 26 set(_PROTOBUF_PACKAGE_PREFIX) |
| 27 set(_PROTOBUF_IMPORT_PREFIX) |
OLD | NEW |