Navigation

  • index
  • next |
  • previous |
  • CMake »
  • 3.18.6 Documentation »
  • cmake-env-variables(7)
This documents an old version of CMake. Click here to see the latest release.

cmake-env-variables(7)¶

Contents

  • cmake-env-variables(7)

    • Environment Variables that Change Behavior

    • Environment Variables that Control the Build

    • Environment Variables for Languages

    • Environment Variables for CTest

    • Environment Variables for the CMake curses interface

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 Change Behavior¶

  • CMAKE_PREFIX_PATH

Environment Variables that Control the Build¶

  • CMAKE_BUILD_PARALLEL_LEVEL
  • CMAKE_CONFIG_TYPE
  • CMAKE_EXPORT_COMPILE_COMMANDS
  • CMAKE_GENERATOR
  • CMAKE_GENERATOR_INSTANCE
  • CMAKE_GENERATOR_PLATFORM
  • CMAKE_GENERATOR_TOOLSET
  • CMAKE_<LANG>_COMPILER_LAUNCHER
  • CMAKE_MSVCIDE_RUN_PATH
  • CMAKE_NO_VERBOSE
  • CMAKE_OSX_ARCHITECTURES
  • DESTDIR
  • LDFLAGS
  • MACOSX_DEPLOYMENT_TARGET
  • <PackageName>_ROOT
  • VERBOSE

Environment Variables for Languages¶

  • ASM<DIALECT>
  • ASM<DIALECT>FLAGS
  • CC
  • CFLAGS
  • CSFLAGS
  • CUDACXX
  • CUDAFLAGS
  • CUDAHOSTCXX
  • CXX
  • CXXFLAGS
  • FC
  • FFLAGS
  • OBJC
  • OBJCXX
  • RC
  • RCFLAGS
  • SWIFTC

Environment Variables for CTest¶

  • CMAKE_CONFIG_TYPE
  • CTEST_INTERACTIVE_DEBUG_MODE
  • CTEST_OUTPUT_ON_FAILURE
  • CTEST_PARALLEL_LEVEL
  • CTEST_PROGRESS_OUTPUT
  • CTEST_USE_LAUNCHERS_DEFAULT
  • DASHBOARD_TEST_FROM_CTEST

Environment Variables for the CMake curses interface¶

  • CCMAKE_COLORS

Table of Contents

  • cmake-env-variables(7)
    • Environment Variables that Change Behavior
    • Environment Variables that Control the Build
    • Environment Variables for Languages
    • Environment Variables for CTest
    • Environment Variables for the CMake curses interface

Previous topic

cmake-developer(7)

Next topic

CMAKE_PREFIX_PATH

This Page

  • Show Source

Quick search

Navigation

  • index
  • next |
  • previous |
  • CMake »
  • 3.18.6 Documentation »
  • cmake-env-variables(7)
© Copyright 2000-2020 Kitware, Inc. and Contributors. Created using Sphinx 3.4.3.