Skip to content

Commit

Permalink
fix(cmake): fix libevdev overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Jun 15, 2024
1 parent 5185959 commit 3e93582
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmake/dependencies/libevdev_Sunshine.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions cmake/macros/common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 3e93582

Please sign in to comment.