Fixed some build issues with arch

This commit is contained in:
2026-03-17 23:47:07 -04:00
parent a40b179886
commit f705dc0ab7
2 changed files with 16 additions and 2 deletions

View File

@@ -22,6 +22,12 @@ macro(find_package) # cmake-lint: disable=C0103
(("${ARGV0_LOWER}" STREQUAL "libevdev") AND DEFINED EXTERNAL_PROJECT_LIBEVDEV_USED)
)
# Do nothing, as the package has already been fetched
elseif("${ARGV0_LOWER}" STREQUAL "boost_system" AND Boost_FOUND)
# boost_system is header-only since Boost 1.69 with no compiled library in 1.89+.
# BoostConfig.cmake calls find_package(boost_system) internally; intercept it here
# and report success so BoostConfig.cmake accepts Boost::system as a valid target.
set(boost_system_FOUND TRUE) # cmake-lint: disable=C0103
set(boost_system_VERSION "${Boost_VERSION}") # cmake-lint: disable=C0103
else()
# Call the original find_package function
_find_package(${ARGV})