aboutsummaryrefslogtreecommitdiff
path: root/cmake/scripts
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2023-09-05 16:36:19 +1000
committerfuzzard <fuzzard@kodi.tv>2023-09-06 09:05:29 +1000
commit7f33c6e125407edb03bf10ebd19645baa8847f22 (patch)
tree89aa01e46e56de6e44e69de24ae1448bf01c2ddc /cmake/scripts
parent9f075a723900aa2d9be1e81e40b4503829d4d2b0 (diff)
[cmake] FindXRandR migrate to full TARGET usage
Diffstat (limited to 'cmake/scripts')
-rw-r--r--cmake/scripts/linux/ExtraTargets.cmake4
-rw-r--r--cmake/scripts/linux/Install.cmake2
2 files changed, 3 insertions, 3 deletions
diff --git a/cmake/scripts/linux/ExtraTargets.cmake b/cmake/scripts/linux/ExtraTargets.cmake
index 548083a5d4..aa8d6182aa 100644
--- a/cmake/scripts/linux/ExtraTargets.cmake
+++ b/cmake/scripts/linux/ExtraTargets.cmake
@@ -1,9 +1,9 @@
# xrandr
-if(X_FOUND AND XRANDR_FOUND)
+if(X_FOUND AND TARGET XRandR::XRandR)
find_package(X QUIET)
find_package(XRandR QUIET)
add_executable(${APP_NAME_LC}-xrandr ${CMAKE_SOURCE_DIR}/xbmc-xrandr.c)
- target_link_libraries(${APP_NAME_LC}-xrandr ${SYSTEM_LDFLAGS} ${X_LIBRARIES} m ${XRANDR_LIBRARIES})
+ target_link_libraries(${APP_NAME_LC}-xrandr ${SYSTEM_LDFLAGS} ${X_LIBRARIES} m XRandR::XRandR)
endif()
# WiiRemote
diff --git a/cmake/scripts/linux/Install.cmake b/cmake/scripts/linux/Install.cmake
index f15026e3b5..b8a94fa73c 100644
--- a/cmake/scripts/linux/Install.cmake
+++ b/cmake/scripts/linux/Install.cmake
@@ -59,7 +59,7 @@ configure_file(${CMAKE_SOURCE_DIR}/tools/Linux/kodi.metainfo.xml.in
install(TARGETS ${APP_NAME_LC}
DESTINATION ${libdir}/${APP_NAME_LC}
COMPONENT kodi-bin)
-if(X_FOUND AND XRANDR_FOUND)
+if(X_FOUND AND TARGET XRandR::XRandR)
install(TARGETS ${APP_NAME_LC}-xrandr
DESTINATION ${libdir}/${APP_NAME_LC}
COMPONENT kodi-bin)