[vlc-commits] tools: build cmake using multiple threads
Steve Lhomme
git at videolan.org
Fri Feb 12 11:27:09 CET 2016
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Feb 9 16:32:42 2016 +0100| [383abfa1be6c11ec6fb999f2a796671f229d9f4a] | committer: Jean-Baptiste Kempf
tools: build cmake using multiple threads
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=383abfa1be6c11ec6fb999f2a796671f229d9f4a
---
extras/tools/bootstrap | 1 +
extras/tools/tools.mak | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index 62aed56..2884aa4 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -109,6 +109,7 @@ esac
cat > Makefile << EOF
MAKEFLAGS += -j$CPUS
+CMAKEFLAGS += --parallel=$CPUS
$CC
$CXX
PREFIX=\$(abspath ./build)
diff --git a/extras/tools/tools.mak b/extras/tools/tools.mak
index 66bb101..69fac38 100644
--- a/extras/tools/tools.mak
+++ b/extras/tools/tools.mak
@@ -68,7 +68,7 @@ cmake: cmake-$(CMAKE_VERSION).tar.gz
$(MOVE)
.cmake: cmake
- (cd $<; ./configure --prefix=$(PREFIX) && $(MAKE) && $(MAKE) install)
+ (cd $<; ./configure --prefix=$(PREFIX) $(CMAKEFLAGS) && $(MAKE) && $(MAKE) install)
touch $@
CLEAN_FILE += .cmake
More information about the vlc-commits
mailing list