1Fix stand-alone build
2
3CMake Error at CMakeLists.txt:40 (add_executable):
4  Cannot find source file:
5
6    /home/bernd/buildroot/output/build/host-kodi-texturepacker-18.4-Leia/tools/depends/native/TexturePacker/xbmc/guilib/XBTF.cpp
7
8  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
9  .hpp .hxx .in .txx
10
11CMake Error at CMakeLists.txt:40 (add_executable):
12  No SOURCES given to target: TexturePacker
13
14Downloaded from
15https://github.com/LibreELEC/LibreELEC.tv/blob/master/packages/mediacenter/kodi/patches/kodi-100.25-hack-fix-texture-packer-cmake-source-dir.patch
16
17Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
18
19diff -Naur a/tools/depends/native/TexturePacker/CMakeLists.txt b/tools/depends/native/TexturePacker/CMakeLists.txt
20--- a/tools/depends/native/TexturePacker/CMakeLists.txt	2016-12-23 17:10:28.593185862 +0000
21+++ b/tools/depends/native/TexturePacker/CMakeLists.txt	2016-12-23 17:10:39.469253011 +0000
22@@ -1,3 +1,5 @@
23+set(CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR}/../../../..)
24+
25 list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
26
27 if(APPLE)
28