Skip to content
Permalink
Browse files

TexturePacker: Hack to work around CMAKE_SOURCE_DIR

  • Loading branch information...
MilhouseVH committed Dec 22, 2016
1 parent 4c39cc4 commit e8fc870bedbb3f8b6d58076f42889bacce7db819
@@ -35,7 +35,7 @@ PKG_AUTORECONF="no"

PKG_CMAKE_SCRIPT="$(get_build_dir kodi)/tools/depends/native/TexturePacker/CMakeLists.txt"

PKG_CMAKE_OPTS_HOST="-DCMAKE_SOURCE_DIR=$(get_build_dir kodi) \
PKG_CMAKE_OPTS_HOST="-DHACK_CMAKE_SOURCE_DIR=$(get_build_dir kodi) \
-Wno-dev"

pre_build_host() {
@@ -0,0 +1,9 @@
diff -Naur a/tools/depends/native/TexturePacker/CMakeLists.txt b/tools/depends/native/TexturePacker/CMakeLists.txt
--- a/tools/depends/native/TexturePacker/CMakeLists.txt 2016-12-23 17:10:28.593185862 +0000
+++ b/tools/depends/native/TexturePacker/CMakeLists.txt 2016-12-23 17:10:39.469253011 +0000
@@ -1,3 +1,5 @@
+set(CMAKE_SOURCE_DIR ${HACK_CMAKE_SOURCE_DIR})
+
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)

if(APPLE)

0 comments on commit e8fc870

Please sign in to comment.
You can’t perform that action at this time.