query
On this page

cmakeOptionType

lib.cmakeOptionType

Docs pulled from | This Revision | 13 minutes ago


Create a "-D<feature>:<type>=<value>" string that can be passed to typical CMake invocations.

Inputs

feature
The feature to be set
type
The type of the feature to be set, as described in https://cmake.org/cmake/help/latest/command/set.html the possible values (case insensitive) are: BOOL FILEPATH PATH STRING INTERNAL
value
The desired value

Type

cmakeOptionType :: string -> string -> string -> string

Examples

lib.strings.cmakeOptionType usage example

cmakeOptionType "string" "ENGINE" "sdl2"
=> "-DENGINE:STRING=sdl2"
(lib.strings.cmakeOptionType)

Noogle detected

Aliases