Struct cmake::Config [] [src]

pub struct Config { /* fields omitted */ }

Builder style configuration for a pending CMake build.

Methods

impl Config
[src]

[src]

Creates a new blank set of configuration to build the project specified at the path path.

[src]

Sets the build-tool generator (-G) for this compilation.

[src]

Adds a custom flag to pass down to the C compiler, supplementing those that this library already passes.

[src]

Adds a custom flag to pass down to the C++ compiler, supplementing those that this library already passes.

[src]

Adds a new -D flag to pass to cmake during the generation step.

[src]

Registers a dependency for this compilation on the native library built by Cargo previously.

This registration will modify the CMAKE_PREFIX_PATH environment variable for the build system generation step.

[src]

Sets the target triple for this compilation.

This is automatically scraped from $TARGET which is set for Cargo build scripts so it's not necessary to call this from a build script.

[src]

Sets the host triple for this compilation.

This is automatically scraped from $HOST which is set for Cargo build scripts so it's not necessary to call this from a build script.

[src]

Sets the output directory for this compilation.

This is automatically scraped from $OUT_DIR which is set for Cargo build scripts so it's not necessary to call this from a build script.

[src]

Sets the profile for this compilation.

This is automatically scraped from $PROFILE which is set for Cargo build scripts so it's not necessary to call this from a build script.

[src]

Configures whether the /MT flag or the /MD flag will be passed to msvc build tools.

This option defaults to false, and affect only msvc targets.

[src]

Add an argument to the final cmake build step

[src]

Configure an environment variable for the cmake processes spawned by this crate in the build step.

[src]

Sets the build target for the final cmake build step, this will default to "install" if not specified.

[src]

Alters the default target triple on OSX to ensure that c++11 is available. Does not change the target triple if it is explicitly specified.

This does not otherwise affect any CXX flags, i.e. it does not set -std=c++11 or -stdlib=libc++.

[src]

Run this configuration, compiling the library with all the configured options.

This will run both the build system generator command as well as the command to build the library.

Trait Implementations

Auto Trait Implementations

impl Send for Config

impl Sync for Config