• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/kodi-platform/0001-kodiplatform-config.cmake-fix-for-cross-compilation.patch
Bernd KuhlsBernd Kuhls committed 0b045afa44e22 Jul 2015
Raw file
Source viewDiff to previous
 
1
From a6e25dba4b5c1d911a4644a0ca116abc642cd72a Mon Sep 17 00:00:00 2001
2
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3
Date: Thu, 30 Jul 2015 09:28:24 +0200
4
Subject: [PATCH] kodiplatform-config.cmake: fix for cross-compilation
5
​
6
Use CMAKE_FIND_ROOT_PATH in kodiplatform-config.cmake in order to make
7
it cross-compilation friendly.
8
​
9
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10
---
11
 CMakeLists.txt               | 2 +-
12
 kodiplatform-config.cmake.in | 6 +++---
13
 2 files changed, 4 insertions(+), 4 deletions(-)
14
​
15
diff --git a/CMakeLists.txt b/CMakeLists.txt
16
index 25d8004..db23dc9 100644
17
--- a/CMakeLists.txt
18
+++ b/CMakeLists.txt
19
@@ -22,7 +22,7 @@ if(NOT WIN32)
20
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
21
 endif()
22
 
23
-set(kodiplatform_INCLUDE_DIRS ${TINYXML_INCLUDE_DIR} "${CMAKE_INSTALL_PREFIX}/include/kodi")
24
+set(kodiplatform_INCLUDE_DIRS "${CMAKE_INSTALL_PREFIX}/include/kodi")
25
 IF(WIN32)
26
   LIST(APPEND kodiplatform_INCLUDE_DIRS "${CMAKE_INSTALL_PREFIX}/include/kodi/windows")
27
 ENDIF(WIN32)
28
diff --git a/kodiplatform-config.cmake.in b/kodiplatform-config.cmake.in
29
index 3fc5273..1bc437a 100644
30
--- a/kodiplatform-config.cmake.in
31
+++ b/kodiplatform-config.cmake.in
32
@@ -10,16 +10,16 @@
33
 #
34
 # propagate these properties from one build system to the other
35
 set (kodiplatform_VERSION "@kodiplatform_VERSION_MAJOR@.@kodiplatform_VERSION_MINOR@")
36
-set (kodiplatform_INCLUDE_DIRS @kodiplatform_INCLUDE_DIRS@ @CMAKE_INSTALL_PREFIX@/include)
37
+set (kodiplatform_INCLUDE_DIRS @TINYXML_INCLUDE_DIR@ ${CMAKE_FIND_ROOT_PATH}@kodiplatform_INCLUDE_DIRS@ ${CMAKE_FIND_ROOT_PATH}@CMAKE_INSTALL_PREFIX@/include)
38
 set (kodiplatform_LIBRARY_DIRS "@CMAKE_LIBRARY_OUTPUT_DIRECTORY@")
39
 set (kodiplatform_LINKER_FLAGS "@kodiplatform_LINKER_FLAGS@")
40
 set (kodiplatform_CONFIG_VARS "@kodiplatform_CONFIG_VARS@")
41
 
42
 # libraries come from the build tree where this file was generated
43
 if(WIN32)
44
-  set (kodiplatform_LIBRARY "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/kodiplatform.lib")
45
+  set (kodiplatform_LIBRARY "${CMAKE_FIND_ROOT_PATH}@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/kodiplatform.lib")
46
 else(WIN32)
47
-  set (kodiplatform_LIBRARY "-L@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ -lkodiplatform")
48
+  set (kodiplatform_LIBRARY "-L${CMAKE_FIND_ROOT_PATH}@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ -lkodiplatform")
49
 endif(WIN32)
50
 set (kodiplatform_LIBRARIES ${kodiplatform_LIBRARY} "@kodiplatform_LIBRARIES@")
51
 mark_as_advanced (kodiplatform_LIBRARY)
52
-- 
53
2.5.0
54
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.