1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-11 13:50:56 -05:00

Fix FindXcb not doing version checks for components

Version checks for FindXcb only make sense if all components have the
same version or only a single component is specified
This commit is contained in:
patrick96 2020-12-21 21:17:36 +01:00 committed by Patrick Ziegler
parent ade8b40b36
commit 84da909b47

View file

@ -26,6 +26,13 @@ foreach(_comp ${Xcb_FIND_COMPONENTS})
message(FATAL_ERROR "Unknow component \"${_comp}\" of XCB") message(FATAL_ERROR "Unknow component \"${_comp}\" of XCB")
endif() endif()
# Forward the different find options set for FindXcb to the individual
# components. This is required because find_package_handle_standard_args in
# find_package_impl uses these variables for version checks and other things.
set(Xcb_${_comp}_FIND_VERSION ${Xcb_FIND_VERSION})
set(Xcb_${_comp}_FIND_QUIETLY ${Xcb_FIND_QUIETLY})
set(Xcb_${_comp}_FIND_REQUIRED ${Xcb_FIND_REQUIRED})
# Bypass developer warning that the first argument to # Bypass developer warning that the first argument to
# find_package_handle_standard_args (Xcb_...) does not match the name of the # find_package_handle_standard_args (Xcb_...) does not match the name of the
# calling package (Xcb) # calling package (Xcb)