diff options
author | Dave Blake <oak99sky@yahoo.co.uk> | 2020-10-30 17:23:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-30 17:23:15 +0000 |
commit | 65fed87ceaf9add201bd6c106ea00506ab9188cc (patch) | |
tree | 048d4cfa373e7dc2de37dc50ab396c2d22b9359f | |
parent | 5ba858538bf51885a7ab25c074b383e0c3b04eb8 (diff) |
Revert "kodi-config.cmake: use CMAKE_FIND_ROOT_PATH to fix cross-compilation"
-rw-r--r-- | cmake/KodiConfig.cmake.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/KodiConfig.cmake.in b/cmake/KodiConfig.cmake.in index ff299807ea..a06d889fca 100644 --- a/cmake/KodiConfig.cmake.in +++ b/cmake/KodiConfig.cmake.in @@ -9,7 +9,7 @@ if(NOT @APP_NAME_UC@_PREFIX) set(@APP_NAME_UC@_PREFIX @APP_PREFIX@) endif() if(NOT @APP_NAME_UC@_INCLUDE_DIR) - set(@APP_NAME_UC@_INCLUDE_DIR ${CMAKE_FIND_ROOT_PATH}/@APP_INCLUDE_DIR@) + set(@APP_NAME_UC@_INCLUDE_DIR @APP_INCLUDE_DIR@) endif() if(NOT @APP_NAME_UC@_LIB_DIR) set(@APP_NAME_UC@_LIB_DIR @APP_LIB_DIR@) @@ -18,7 +18,7 @@ if(NOT @APP_NAME_UC@_DATA_DIR) set(@APP_NAME_UC@_DATA_DIR @APP_DATA_DIR@) endif() set(APP_RENDER_SYSTEM @APP_RENDER_SYSTEM@) -list(APPEND CMAKE_MODULE_PATH ${CMAKE_FIND_ROOT_PATH}/@APP_LIB_DIR@ ${CMAKE_FIND_ROOT_PATH}/@APP_DATA_DIR@/cmake) +list(APPEND CMAKE_MODULE_PATH @APP_LIB_DIR@ @APP_DATA_DIR@/cmake) string(REPLACE ";" " " ARCH_DEFINES "@ARCH_DEFINES@") add_definitions(${ARCH_DEFINES} -DBUILD_KODI_ADDON) |