git: 3ecb58c61953 - main - Mk/Uses/cmake.mk: Respect MAKE_JOBS_NUMBER
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 29 Jun 2024 05:42:29 UTC
The branch main has been updated by jhale: URL: https://cgit.FreeBSD.org/ports/commit/?id=3ecb58c61953097c5b5331c3e11ae8fced410ca9 commit 3ecb58c61953097c5b5331c3e11ae8fced410ca9 Author: Jason E. Hale <jhale@FreeBSD.org> AuthorDate: 2024-06-29 05:20:51 +0000 Commit: Jason E. Hale <jhale@FreeBSD.org> CommitDate: 2024-06-29 05:20:51 +0000 Mk/Uses/cmake.mk: Respect MAKE_JOBS_NUMBER Pass -DCMAKE_AUTOGEN_PARALLEL:STRING="${MAKE_JOBS_NUMBER}" to avoid spawning more moc and uic processes than the user has specified via MAKE_JOBS_NUMBER and to limit to 1 if the user has DISABLE_MAKE_JOBS set. PR: 279908 Reported by: Anton Saietskii <vsasjason@gmail.com> --- Mk/Uses/cmake.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/Mk/Uses/cmake.mk b/Mk/Uses/cmake.mk index 49da50e5795c..5d8921519bca 100644 --- a/Mk/Uses/cmake.mk +++ b/Mk/Uses/cmake.mk @@ -103,6 +103,7 @@ CMAKE_ARGS+= -DCMAKE_C_COMPILER:STRING="${CC}" \ -DCMAKE_MODULE_LINKER_FLAGS:STRING="${LDFLAGS}" \ -DCMAKE_SHARED_LINKER_FLAGS:STRING="${LDFLAGS}" \ -DCMAKE_INSTALL_PREFIX:PATH="${CMAKE_INSTALL_PREFIX}" \ + -DCMAKE_AUTOGEN_PARALLEL:STRING="${MAKE_JOBS_NUMBER}" \ -DCMAKE_BUILD_TYPE:STRING="${CMAKE_BUILD_TYPE}" \ -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES \ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=YES \