[Bug 213331] USES=gmake can break CMAKE_NINJA=yes

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Oct 12 17:48:47 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213331

--- Comment #2 from Raphael Kubo da Costa <rakuco at FreeBSD.org> ---
(In reply to Antoine Brodin from comment #1)
> Can't you use something like this?
>
> .if !defined(CMAKE_NINJA)
> USES+= gmake
> .endif

The problem with this is that it adds a burden to every single port that uses
CMake and cannot be built with bmake, which is not very feasible.

One thing tcberner@ thought of a while ago was this in Uses/cmake.mk:
    .if ${USES:Mgmake}
    .include ${USESDIR}/gmake.mk
    .endif
    .if defined(CMAKE_NINJA)
    .include "${USESDIR}/ninja.mk"
    .endif

which would give preference to ninja as expected. Would something like this be
OK?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kde-freebsd mailing list