svn commit: r343402 - head/Mk/Uses

Baptiste Daroussin bapt at FreeBSD.org
Sat Feb 8 22:15:15 UTC 2014


Author: bapt
Date: Sat Feb  8 22:15:14 2014
New Revision: 343402
URL: http://svnweb.freebsd.org/changeset/ports/343402
QAT: https://qat.redports.org/buildarchive/r343402/

Log:
  Add a global CMAKE_NINJA variable to set in make.conf to use ninja instead of make(1) for ports using cmake

Modified:
  head/Mk/Uses/cmake.mk

Modified: head/Mk/Uses/cmake.mk
==============================================================================
--- head/Mk/Uses/cmake.mk	Sat Feb  8 22:14:29 2014	(r343401)
+++ head/Mk/Uses/cmake.mk	Sat Feb  8 22:15:14 2014	(r343402)
@@ -18,6 +18,7 @@
 #			Default: not set, until BATCH or PACKAGE_BUILDING is defined
 # CMAKE_NOCOLOR		- Disable colour build output
 #			Default: not set, until BATCH or PACKAGE_BUILDING is defined
+# CMAKE_NINJA		- Use ninja instead of make(1)
 #
 # Variables for ports:
 # CMAKE_ENV		- Environment passed to cmake.
@@ -99,6 +100,10 @@ CMAKE_ARGS+=		-DCMAKE_VERBOSE_MAKEFILE:B
 CMAKE_ARGS+=		-DCMAKE_COLOR_MAKEFILE:BOOL=OFF
 .endif
 
+.if defined(CMAKE_NINJA)
+.include "${USESDIR}/ninja.mk"
+.endif
+
 _CMAKE_MSG=		"===>  Performing in-source build"
 CMAKE_SOURCE_PATH?=	${WRKSRC}
 


More information about the svn-ports-all mailing list