0002-fix-texture-packer-cmake-source-dir.patch 1.1 KB

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