aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/README.Android.md6
-rw-r--r--docs/README.RaspberryPi.md6
-rw-r--r--docs/README.macOS.md6
-rw-r--r--tools/depends/target/cmakebuildsys/Makefile4
4 files changed, 21 insertions, 1 deletions
diff --git a/docs/README.Android.md b/docs/README.Android.md
index b48a1591cd..0a85d64476 100644
--- a/docs/README.Android.md
+++ b/docs/README.Android.md
@@ -195,6 +195,12 @@ cd $HOME/kodi
make -C tools/depends/target/cmakebuildsys
```
+**TIP:** BUILD_DIR can be provided as an argument to cmakebuildsys. This allows you to provide an alternate build location. Change all paths onwards as required if BUILD_DIR option used.
+```
+mkdir $HOME/kodi-build
+make -C tools/depends/target/cmakebuildsys BUILD_DIR=$HOME/kodi-build
+```
+
Build Kodi:
```
cd $HOME/kodi/build
diff --git a/docs/README.RaspberryPi.md b/docs/README.RaspberryPi.md
index eb44d1bbda..3c13cdb62e 100644
--- a/docs/README.RaspberryPi.md
+++ b/docs/README.RaspberryPi.md
@@ -120,6 +120,12 @@ cd $HOME/kodi
make -C tools/depends/target/cmakebuildsys
```
+**TIP:** BUILD_DIR can be provided as an argument to cmakebuildsys. This allows you to provide an alternate build location. Change all paths onwards as required if BUILD_DIR option used.
+```
+mkdir $HOME/kodi-build
+make -C tools/depends/target/cmakebuildsys BUILD_DIR=$HOME/kodi-build
+```
+
Build Kodi:
```
cd $HOME/kodi/build
diff --git a/docs/README.macOS.md b/docs/README.macOS.md
index 34bad23a38..02d4ef33fb 100644
--- a/docs/README.macOS.md
+++ b/docs/README.macOS.md
@@ -206,6 +206,12 @@ Generate makefiles:
make -C tools/depends/target/cmakebuildsys
```
+**TIP:** BUILD_DIR can be provided as an argument to cmakebuildsys. This allows you to provide an alternate build location. Change all paths onwards as required if BUILD_DIR option used.
+```
+mkdir $HOME/kodi-build
+make -C tools/depends/target/cmakebuildsys BUILD_DIR=$HOME/kodi-build
+```
+
Build Kodi:
```
make -j$(getconf _NPROCESSORS_ONLN) -C build
diff --git a/tools/depends/target/cmakebuildsys/Makefile b/tools/depends/target/cmakebuildsys/Makefile
index 89249c1cda..893e21caba 100644
--- a/tools/depends/target/cmakebuildsys/Makefile
+++ b/tools/depends/target/cmakebuildsys/Makefile
@@ -10,7 +10,9 @@ ifeq ($(Configuration),)
endif
endif
-BUILD_DIR=$(CMAKE_SOURCE_DIR)/build
+ifeq ($(BUILD_DIR),)
+ BUILD_DIR=$(CMAKE_SOURCE_DIR)/build
+endif
all:
mkdir -p $(BUILD_DIR)