diff options
author | fuzzard <fuzzard@kodi.tv> | 2023-09-05 16:45:51 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2023-09-06 09:05:29 +1000 |
commit | 7c0c7f5bd1485ee84d3a599be81e7ba4b78d03c4 (patch) | |
tree | f1aec39172e43727d4fce8f28c2e8aaad6caa1c3 /cmake/scripts | |
parent | 7f33c6e125407edb03bf10ebd19645baa8847f22 (diff) |
[cmake] FindX migrate to full TARGET usage
Diffstat (limited to 'cmake/scripts')
-rw-r--r-- | cmake/scripts/linux/ExtraTargets.cmake | 4 | ||||
-rw-r--r-- | cmake/scripts/linux/Install.cmake | 2 |
2 files changed, 3 insertions, 3 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 diff --git a/cmake/scripts/linux/Install.cmake b/cmake/scripts/linux/Install.cmake index b8a94fa73c..3f6c7ac6da 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 TARGET XRandR::XRandR) +if(TARGET X::X AND TARGET XRandR::XRandR) install(TARGETS ${APP_NAME_LC}-xrandr DESTINATION ${libdir}/${APP_NAME_LC} COMPONENT kodi-bin) |