Skip to content
Permalink
Browse files

TexturePacker: Hack to work around CMAKE_SOURCE_DIR

  • Loading branch information...
MilhouseVH committed Dec 22, 2016
1 parent 40644b0 commit dba5e31d5bb6f5feb40a291d8321dcf6d1442eb5
@@ -35,8 +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) \
-Wno-dev"
PKG_CMAKE_OPTS_HOST="-Wno-dev"

pre_build_host() {
$SCRIPTS/clean $PKG_NAME
@@ -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 ${CMAKE_SOURCE_DIR}/../../../..)
+
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)

if(APPLE)

0 comments on commit dba5e31

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