diff --git a/cmake/dependencies/libevdev_Sunshine.cmake b/cmake/dependencies/libevdev_Sunshine.cmake index 4d0af70a009..86c8a0099fd 100644 --- a/cmake/dependencies/libevdev_Sunshine.cmake +++ b/cmake/dependencies/libevdev_Sunshine.cmake @@ -34,6 +34,7 @@ else() set(SUNSHINE_TARGET_DEPENDENCIES ${SUNSHINE_TARGET_DEPENDENCIES} libevdev) set(EXTERNAL_PROJECT_LIBEVDEV_USED TRUE) + set(PC_EVDEV_FOUND TRUE) endif() if(EVDEV_INCLUDE_DIR AND EVDEV_LIBRARY) diff --git a/cmake/macros/common.cmake b/cmake/macros/common.cmake index 215b9fd8dec..ad780f8675e 100644 --- a/cmake/macros/common.cmake +++ b/cmake/macros/common.cmake @@ -19,7 +19,7 @@ macro(find_package) # cmake-lint: disable=C0103 string(TOLOWER "${ARGV0}" ARGV0_LOWER) if( (("${ARGV0_LOWER}" STREQUAL "boost") AND DEFINED FETCH_CONTENT_BOOST_USED) OR - (("${ARGV0_LOWER}" STREQUAL "libevdev") AND DEFINED FETCH_CONTENT_LIBEVDEV_USED) + (("${ARGV0_LOWER}" STREQUAL "libevdev") AND DEFINED EXTERNAL_PROJECT_LIBEVDEV_USED) ) # Do nothing, as the package has already been fetched else() @@ -33,7 +33,7 @@ macro(pkg_check_modules) # cmake-lint: disable=C0103 string(TOLOWER "${ARGV0}" ARGV0_LOWER) if( (("${ARGV0_LOWER}" STREQUAL "boost") AND DEFINED FETCH_CONTENT_BOOST_USED) OR - (("${ARGV0_LOWER}" STREQUAL "libevdev") AND DEFINED FETCH_CONTENT_LIBEVDEV_USED) + (("${ARGV0_LOWER}" STREQUAL "libevdev") AND DEFINED EXTERNAL_PROJECT_LIBEVDEV_USED) ) # Do nothing, as the package has already been fetched else()