Add opt_CMAKE_BOOL_OFF, oposite of opt_CMAKE_BOOL.
PR: 210576 Sponsored by: Absolight
This commit is contained in:
parent
922165eb76
commit
6c2e13095d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=417532
1 changed files with 9 additions and 0 deletions
|
@ -101,6 +101,9 @@
|
|||
# ${opt}_CMAKE_BOOL Will add to CMAKE_ARGS:
|
||||
# Option enabled -D${content}:BOOL=true
|
||||
# Option disabled -D${content}:BOOL=false
|
||||
# ${opt}_CMAKE_BOOL_OFF Will add to CMAKE_ARGS:
|
||||
# Option enabled -D${content}:BOOL=false
|
||||
# Option disabled -D${content}:BOOL=true
|
||||
#
|
||||
# ${opt}_QMAKE_ON When option is enabled, it will add its content to
|
||||
# the QMAKE_ARGS.
|
||||
|
@ -522,6 +525,9 @@ CONFIGURE_ARGS+= ${${opt}_CONFIGURE_WITH:S/^/--with-/}
|
|||
. if defined(${opt}_CMAKE_BOOL)
|
||||
CMAKE_ARGS+= ${${opt}_CMAKE_BOOL:C/.*/-D&:BOOL=true/}
|
||||
. endif
|
||||
. if defined(${opt}_CMAKE_BOOL_OFF)
|
||||
CMAKE_ARGS+= ${${opt}_CMAKE_BOOL_OFF:C/.*/-D&:BOOL=false/}
|
||||
. endif
|
||||
. for configure in CONFIGURE CMAKE QMAKE
|
||||
. if defined(${opt}_${configure}_ON)
|
||||
${configure}_ARGS+= ${${opt}_${configure}_ON}
|
||||
|
@ -569,6 +575,9 @@ CONFIGURE_ARGS+= ${${opt}_CONFIGURE_WITH:S/^/--without-/:C/=.*//}
|
|||
. if defined(${opt}_CMAKE_BOOL)
|
||||
CMAKE_ARGS+= ${${opt}_CMAKE_BOOL:C/.*/-D&:BOOL=false/}
|
||||
. endif
|
||||
. if defined(${opt}_CMAKE_BOOL_OFF)
|
||||
CMAKE_ARGS+= ${${opt}_CMAKE_BOOL_OFF:C/.*/-D&:BOOL=true/}
|
||||
. endif
|
||||
. for configure in CONFIGURE CMAKE QMAKE
|
||||
. if defined(${opt}_${configure}_OFF)
|
||||
${configure}_ARGS+= ${${opt}_${configure}_OFF}
|
||||
|
|
Loading…
Reference in a new issue