CMake subproject options (cmake_options)

Central configuration object for CMake subprojects

Returned by

CMake subproject options objects are returned by the following functions and methods:

CMake subproject options methods

cmake_options.add_cmake_defines()

Add CMake defines (-D<VAR>=<VAL>) to the CMake commandline

Signature

# Add CMake defines (`-D=`) to the CMake commandline
void add_cmake_defines(
  dict[str] defines...,  # A `key` `value` map of CMake defines to add (`-D=`)
)

Arguments

The method accepts between 0 and infinity variadic arguments (defines...) of type dict[str].

A key value map of CMake defines to add (-D<key>=<val>)


The results of the search are