patch-cmake_KodiConfig_cmake_in 945 B

1234567891011121314151617181920
  1. --- xbmc-18.0a1-Leia.orig/cmake/KodiConfig.cmake.in 2018-03-04 10:21:28.000000000 +0100
  2. +++ xbmc-18.0a1-Leia/cmake/KodiConfig.cmake.in 2018-05-23 08:10:01.842094111 +0200
  3. @@ -8,7 +8,7 @@ if(NOT @APP_NAME_UC@_PREFIX)
  4. set(@APP_NAME_UC@_PREFIX @APP_PREFIX@)
  5. endif()
  6. if(NOT @APP_NAME_UC@_INCLUDE_DIR)
  7. - set(@APP_NAME_UC@_INCLUDE_DIR @APP_INCLUDE_DIR@)
  8. + set(@APP_NAME_UC@_INCLUDE_DIR ${CMAKE_FIND_ROOT_PATH}/@APP_INCLUDE_DIR@)
  9. endif()
  10. if(NOT @APP_NAME_UC@_LIB_DIR)
  11. set(@APP_NAME_UC@_LIB_DIR @APP_LIB_DIR@)
  12. @@ -20,7 +20,7 @@ set(APP_RENDER_SYSTEM @APP_RENDER_SYSTEM
  13. if(NOT WIN32)
  14. set(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} @CXX11_SWITCH@")
  15. endif()
  16. -list(APPEND CMAKE_MODULE_PATH @APP_LIB_DIR@ @APP_DATA_DIR@/cmake)
  17. +list(APPEND CMAKE_MODULE_PATH ${CMAKE_FIND_ROOT_PATH}/@APP_LIB_DIR@ ${CMAKE_FIND_ROOT_PATH}/@APP_DATA_DIR@/cmake)
  18. string(REPLACE ";" " " ARCH_DEFINES "@ARCH_DEFINES@")
  19. add_definitions(${ARCH_DEFINES} -DBUILD_KODI_ADDON)