query
On this page

cmakeOptionType

lib.cmakeOptionType

Docs pulled from | This Revision | 44 minutes ago


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

Inputs

type
The type of the feature to be set, as described in the CMake set documentation the possible values (case insensitive) are: BOOL FILEPATH PATH STRING INTERNAL LIST
feature
The feature to be set
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