Patch is available at https://people.FreeBSD.org/~sunpoet/patch/Mk-Uses-cmake.mk.txt Instead of using _PARALLEL_LEVEL suffix from cmake upstream, use _JOBS to align with MAKE_JOBS used in the ports tree.
It's not fully equvalent to jobs so that's why it wasn't named like that in the first place so this is a not a good option and can lead to unintended results. Addtionally this was already suggested in a previous PR and not accepted, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279316
(In reply to Daniel Engberg from comment #1) Daniel, you have a valid point that the '-j' flag in ctest(1) functions differently than that of bmake(1), gmake(1), or ninja. The ports system, however, really expects MAKE_JOBS_NUMBER to be a positive nonzero integer and does absolutely nothing to check the sanity of this user-settable value. For example, bmake allows the -j flag to be a floating point or end in 'C' per the manpage, and ports that just use bmake will build with rather bizarre strings in /etc/make.conf like 'MAKE_JOBS_NUMBER=3.14159_gimme_some_pi'. *dog in burning house - this is fine - meme* Build systems like gmake or ninja would bark and bite at such a declaration. Since meta build systems like CMake and meson use ninja by default, they would also crap out. *qmake quietly chuckles to itself* That said, I'm more inclined to agree with sunpoet. This variable, however it is called, should be documented in Mk/Uses/cmake.mk, though.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=43a48347abe7d89353ff0c9be56eb829ca8819aa commit 43a48347abe7d89353ff0c9be56eb829ca8819aa Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2025-11-09 16:28:16 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2025-11-09 16:32:44 +0000 Mk/Uses/cmake.mk: Rename CMAKE_TESTING_PARALLEL_LEVEL to CMAKE_TESTING_JOBS PR: 290583 Approved by: jhale Mk/Uses/cmake.mk | 8 ++++---- chinese/libchewing/Makefile | 2 +- security/mbedtls3/Makefile | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-)
Committed. Thanks.