HomeFreeBSD

Add CMAKE_ON and CMAKE_OFF to cmake.mk

Description

Add CMAKE_ON and CMAKE_OFF to cmake.mk

USES=cmake now supports two additional list variables:
  * CMAKE_ON  : List of variables to turn on
  * CMAKE_OFF : List of variables to turn off
This can be used as a shortcut to append these to CMAKE_ARGS.

For example ports that previously set
  CMAKE_ARGS=		-DVAR1:BOOL=TRUE -DVAR2:BOOL=TRUE -DVAR3:BOOL=FALSE
can now set this as
  CMAKE_ON=		VAR1 VAR2
  CMAKE_OFF=		VAR3

Reviewed by: adridg, rakuco, mat
Differential Revision: https://reviews.freebsd.org/D13636

Details

Provenance
tcbernerAuthored on
Reviewer
adridg
Differential Revision
D13636: RFC: Add CMAKE_ON and CMAKE_OFF to cmake.mk
Parents
rP457676: Update net-im/py-fbmq to version 2.4.3.
Branches
Unknown
Tags
Unknown