Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Oct 2016 17:48:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 213331] USES=gmake can break CMAKE_NINJA=yes
Message-ID:  <bug-213331-13-CgKLbim4MQ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-213331-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-213331-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213331

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

The problem with this is that it adds a burden to every single port that us=
es
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?

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213331-13-CgKLbim4MQ>