-
Notifications
You must be signed in to change notification settings - Fork 0
/
RSBProtocolConfig-version.cmake.in
20 lines (18 loc) · 1.31 KB
/
RSBProtocolConfig-version.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
set(PACKAGE_VERSION "@RSB_PROTOCOL_VERSION@")
if(${PACKAGE_FIND_VERSION_PATCH} EQUAL @RSB_PROTOCOL_VERSION_PATCH@)
message(STATUS "@CMAKE_PROJECT_NAME@: Matching wire-format version (@RSB_PROTOCOL_VERSION_PATCH@)")
set(PACKAGE_VERSION "@RSB_PROTOCOL_VERSION_MAJOR@.@RSB_PROTOCOL_VERSION_MINOR@.@RSB_PROTOCOL_VERSION_PATCH@")
set(PACKAGE_VERSION_COMPATIBLE TRUE)
else()
message("@CMAKE_PROJECT_NAME@: Wire-format version mismatch; Requested: ${PACKAGE_FIND_VERSION_PATCH}; Provided: @RSB_PROTOCOL_VERSION_PATCH@")
message("This is not a problem as long as a compatible version of @CMAKE_PROJECT_NAME@ is found later.")
message("This message is generated from ${CMAKE_CURRENT_LIST_FILE}")
message("In general, this can happen when RSB or some other library is configured to use a version of @CMAKE_PROJECT_NAME@ with which it is not compatible.")
message("* Did you update the cpp sub-project of RSB, but not the protocol sub-project?")
message("* Did you install the protocol sub-project after updating?")
message("* Make sure that the correct version of the protocol sub-project is used if you installed multiple RSB versions in parallel.")
set(PACKAGE_VERSION_COMPATIBLE FALSE)
endif()
if("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
set(PACKAGE_VERSION_EXACT TRUE)
endif()