aboutsummaryrefslogtreecommitdiff
path: root/cmake/scripts/linux/ExtraTargets.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/scripts/linux/ExtraTargets.cmake')
-rw-r--r--cmake/scripts/linux/ExtraTargets.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/scripts/linux/ExtraTargets.cmake b/cmake/scripts/linux/ExtraTargets.cmake
index aa8d6182aa..ee13ae6f08 100644
--- a/cmake/scripts/linux/ExtraTargets.cmake
+++ b/cmake/scripts/linux/ExtraTargets.cmake
@@ -1,9 +1,9 @@
# xrandr
-if(X_FOUND AND TARGET XRandR::XRandR)
+if(TARGET X::X 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::XRandR)
+ target_link_libraries(${APP_NAME_LC}-xrandr ${SYSTEM_LDFLAGS} X::X m XRandR::XRandR)
endif()
# WiiRemote