[vlc-devel] [PATCH] tools: build cmake using multiple threads
Steve Lhomme
robux4 at videolabs.io
Tue Feb 9 16:32:42 CET 2016
---
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 7cde9b7..764e9af 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -110,6 +110,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 5475952..bd6b2f0 100644
--- a/extras/tools/tools.mak
+++ b/extras/tools/tools.mak
@@ -69,7 +69,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
--
2.7.0.windows.1
More information about the vlc-devel
mailing list