cmake-env-variables(7)¶
Contents
This page lists environment variables that have special meaning to CMake.
For general information on environment variables, see the Environment Variables section in the cmake-language manual.
Environment Variables that Control the Build¶
- CMAKE_APPLE_SILICON_PROCESSOR
- CMAKE_BUILD_PARALLEL_LEVEL
- CMAKE_BUILD_TYPE
- CMAKE_CONFIGURATION_TYPES
- CMAKE_CONFIG_TYPE
- CMAKE_EXPORT_COMPILE_COMMANDS
- CMAKE_GENERATOR
- CMAKE_GENERATOR_INSTANCE
- CMAKE_GENERATOR_PLATFORM
- CMAKE_GENERATOR_TOOLSET
- CMAKE_INSTALL_MODE
- CMAKE_<LANG>_COMPILER_LAUNCHER
- CMAKE_<LANG>_LINKER_LAUNCHER
- CMAKE_MSVCIDE_RUN_PATH
- CMAKE_NO_VERBOSE
- CMAKE_OSX_ARCHITECTURES
- CMAKE_TOOLCHAIN_FILE
- DESTDIR
- LDFLAGS
- MACOSX_DEPLOYMENT_TARGET
- <PackageName>_ROOT
- VERBOSE