code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_BUILD_RPATH — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_BUILD_RPATH_USE_ORIGIN" href="CMAKE_BUILD_RPATH_USE_ORIGIN.html" />
    <link rel="prev" title="CMAKE_AUTOUIC_EXECUTABLE" href="CMAKE_AUTOUIC_EXECUTABLE.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_BUILD_RPATH

CMAKE_BUILD_RPATH¶

New in version 3.8.

Semicolon-separated list specifying runtime path (RPATH)
entries to add to binaries linked in the build tree (for platforms that
support it).  The entries will not be used for binaries in the install
tree.  See also the CMAKE_INSTALL_RPATH variable.

This is used to initialize the BUILD_RPATH target property
for all targets.

Previous topic

CMAKE_AUTOUIC_EXECUTABLE

Next topic

CMAKE_BUILD_RPATH_USE_ORIGIN

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_BUILD_RPATH

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_BUILD_RPATH_USE_ORIGIN — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_BUILD_WITH_INSTALL_NAME_DIR" href="CMAKE_BUILD_WITH_INSTALL_NAME_DIR.html" />
    <link rel="prev" title="CMAKE_BUILD_RPATH" href="CMAKE_BUILD_RPATH.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_BUILD_RPATH_USE_ORIGIN

CMAKE_BUILD_RPATH_USE_ORIGIN¶

New in version 3.14.

Whether to use relative paths for the build RPATH.

This is used to initialize the BUILD_RPATH_USE_ORIGIN target
property for all targets, see that property for more details.

Previous topic

CMAKE_BUILD_RPATH

Next topic

CMAKE_BUILD_WITH_INSTALL_NAME_DIR

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_BUILD_RPATH_USE_ORIGIN

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.

repo_name: lazytadpole/codenamesilverfish

license: mit


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_BUILD_TOOL — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CACHE_MAJOR_VERSION" href="CMAKE_CACHE_MAJOR_VERSION.html" />
    <link rel="prev" title="CMAKE_BINARY_DIR" href="CMAKE_BINARY_DIR.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_BUILD_TOOL

CMAKE_BUILD_TOOL¶

This variable exists only for backwards compatibility.
It contains the same value as CMAKE_MAKE_PROGRAM.
Use that variable instead.

Previous topic

CMAKE_BINARY_DIR

Next topic

CMAKE_CACHE_MAJOR_VERSION

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_BUILD_TOOL

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_BUILD_TYPE — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CLANG_VFS_OVERLAY" href="CMAKE_CLANG_VFS_OVERLAY.html" />
    <link rel="prev" title="CMAKE_APPBUNDLE_PATH" href="CMAKE_APPBUNDLE_PATH.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_BUILD_TYPE

CMAKE_BUILD_TYPE¶

Specifies the build type on single-configuration generators (e.g.
Makefile Generators or Ninja).  Typical values include
Debug, Release, RelWithDebInfo and MinSizeRel, but custom
build types can also be defined.

This variable is initialized by the first project() or
enable_language() command called in a project when a new build
tree is first created.  If the CMAKE_BUILD_TYPE environment
variable is set, its value is used.  Otherwise, a toolchain-specific
default is chosen when a language is enabled.  The default value is often
an empty string, but this is usually not desirable and one of the other
standard build types is usually more appropriate.

Depending on the situation, the value of this variable may be treated
case-sensitively or case-insensitively.  See Build Configurations
for discussion of this and other related topics.

For multi-config generators, see CMAKE_CONFIGURATION_TYPES.

Previous topic

CMAKE_APPBUNDLE_PATH

Next topic

CMAKE_CLANG_VFS_OVERLAY

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_BUILD_TYPE

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_BUILD_WITH_INSTALL_NAME_DIR — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_BUILD_WITH_INSTALL_RPATH" href="CMAKE_BUILD_WITH_INSTALL_RPATH.html" />
    <link rel="prev" title="CMAKE_BUILD_RPATH_USE_ORIGIN" href="CMAKE_BUILD_RPATH_USE_ORIGIN.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_BUILD_WITH_INSTALL_NAME_DIR

CMAKE_BUILD_WITH_INSTALL_NAME_DIR¶

New in version 3.9.

Whether to use INSTALL_NAME_DIR on targets in the build tree.

This variable is used to initialize the BUILD_WITH_INSTALL_NAME_DIR
property on all targets.

Previous topic

CMAKE_BUILD_RPATH_USE_ORIGIN

Next topic

CMAKE_BUILD_WITH_INSTALL_RPATH

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_BUILD_WITH_INSTALL_NAME_DIR

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_BUILD_WITH_INSTALL_RPATH — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY" href="CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY.html" />
    <link rel="prev" title="CMAKE_BUILD_WITH_INSTALL_NAME_DIR" href="CMAKE_BUILD_WITH_INSTALL_NAME_DIR.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_BUILD_WITH_INSTALL_RPATH

CMAKE_BUILD_WITH_INSTALL_RPATH¶

Use the install path for the RPATH.

Normally CMake uses the build tree for the RPATH when building
executables etc on systems that use RPATH.  When the software is
installed the executables etc are relinked by CMake to have the
install RPATH.  If this variable is set to true then the software is
always built with the install path for the RPATH and does not need to
be relinked when installed.

This is used to initialize the BUILD_WITH_INSTALL_RPATH target property
for all targets.

Previous topic

CMAKE_BUILD_WITH_INSTALL_NAME_DIR

Next topic

CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_BUILD_WITH_INSTALL_RPATH

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CACHEFILE_DIR — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CFG_INTDIR" href="CMAKE_CFG_INTDIR.html" />
    <link rel="prev" title="CMAKE_CACHE_PATCH_VERSION" href="CMAKE_CACHE_PATCH_VERSION.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CACHEFILE_DIR

CMAKE_CACHEFILE_DIR¶

This variable is used internally by CMake, and may not be set during
the first configuration of a build tree.  When it is set, it has the
same value as CMAKE_BINARY_DIR.  Use that variable instead.

Previous topic

CMAKE_CACHE_PATCH_VERSION

Next topic

CMAKE_CFG_INTDIR

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CACHEFILE_DIR

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CACHE_MAJOR_VERSION — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CACHE_MINOR_VERSION" href="CMAKE_CACHE_MINOR_VERSION.html" />
    <link rel="prev" title="CMAKE_BUILD_TOOL" href="CMAKE_BUILD_TOOL.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CACHE_MAJOR_VERSION

CMAKE_CACHE_MAJOR_VERSION¶

Major version of CMake used to create the CMakeCache.txt file

This stores the major version of CMake used to write a CMake cache
file.  It is only different when a different version of CMake is run
on a previously created cache file.

Previous topic

CMAKE_BUILD_TOOL

Next topic

CMAKE_CACHE_MINOR_VERSION

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CACHE_MAJOR_VERSION

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CACHE_MINOR_VERSION — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CACHE_PATCH_VERSION" href="CMAKE_CACHE_PATCH_VERSION.html" />
    <link rel="prev" title="CMAKE_CACHE_MAJOR_VERSION" href="CMAKE_CACHE_MAJOR_VERSION.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CACHE_MINOR_VERSION

CMAKE_CACHE_MINOR_VERSION¶

Minor version of CMake used to create the CMakeCache.txt file

This stores the minor version of CMake used to write a CMake cache
file.  It is only different when a different version of CMake is run
on a previously created cache file.

Previous topic

CMAKE_CACHE_MAJOR_VERSION

Next topic

CMAKE_CACHE_PATCH_VERSION

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CACHE_MINOR_VERSION

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CACHE_PATCH_VERSION — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CACHEFILE_DIR" href="CMAKE_CACHEFILE_DIR.html" />
    <link rel="prev" title="CMAKE_CACHE_MINOR_VERSION" href="CMAKE_CACHE_MINOR_VERSION.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CACHE_PATCH_VERSION

CMAKE_CACHE_PATCH_VERSION¶

Patch version of CMake used to create the CMakeCache.txt file

This stores the patch version of CMake used to write a CMake cache
file.  It is only different when a different version of CMake is run
on a previously created cache file.

Previous topic

CMAKE_CACHE_MINOR_VERSION

Next topic

CMAKE_CACHEFILE_DIR

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CACHE_PATCH_VERSION

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CFG_INTDIR — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_COMMAND" href="CMAKE_COMMAND.html" />
    <link rel="prev" title="CMAKE_CACHEFILE_DIR" href="CMAKE_CACHEFILE_DIR.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CFG_INTDIR

CMAKE_CFG_INTDIR¶

Deprecated since version 3.21: This variable has poor support on Ninja Multi-Config, and
predates the existence of the $<CONFIG> generator expression. Use
$<CONFIG> instead.

Build-time reference to per-configuration output subdirectory.

For native build systems supporting multiple configurations in the
build tree (such as Visual Studio Generators and Xcode),
the value is a reference to a build-time variable specifying the name
of the per-configuration output subdirectory.  On Makefile Generators
this evaluates to . because there is only one configuration in a build tree.
Example values:

$(ConfigurationName) = Visual Studio 9
$(Configuration)     = Visual Studio 12 and above
$(CONFIGURATION)     = Xcode
.                    = Make-based tools
.                    = Ninja
${CONFIGURATION}     = Ninja Multi-Config

Since these values are evaluated by the native build system, this
variable is suitable only for use in command lines that will be
evaluated at build time.  Example of intended usage:

add_executable(mytool mytool.c)
add_custom_command(
  OUTPUT out.txt
  COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/mytool
          ${CMAKE_CURRENT_SOURCE_DIR}/in.txt out.txt
  DEPENDS mytool in.txt
  )
add_custom_target(drive ALL DEPENDS out.txt)

Note that CMAKE_CFG_INTDIR is no longer necessary for this purpose but
has been left for compatibility with existing projects.  Instead
add_custom_command() recognizes executable target names in its
COMMAND option, so
${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/mytool can be replaced
by just mytool.

This variable is read-only.  Setting it is undefined behavior.  In
multi-configuration build systems the value of this variable is passed
as the value of preprocessor symbol CMAKE_INTDIR to the compilation
of all source files.

Previous topic

CMAKE_CACHEFILE_DIR

Next topic

CMAKE_COMMAND

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CFG_INTDIR

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CLANG_VFS_OVERLAY — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CODEBLOCKS_COMPILER_ID" href="CMAKE_CODEBLOCKS_COMPILER_ID.html" />
    <link rel="prev" title="CMAKE_BUILD_TYPE" href="CMAKE_BUILD_TYPE.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CLANG_VFS_OVERLAY

CMAKE_CLANG_VFS_OVERLAY¶

New in version 3.19.

When cross compiling for windows with clang-cl, this variable can be an
absolute path pointing to a clang virtual file system yaml file, which
will enable clang-cl to resolve windows header names on a case sensitive
file system.

Previous topic

CMAKE_BUILD_TYPE

Next topic

CMAKE_CODEBLOCKS_COMPILER_ID

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CLANG_VFS_OVERLAY

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CL_64 — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_COMPILER_2005" href="CMAKE_COMPILER_2005.html" />
    <link rel="prev" title="CMAKE_ANDROID_NDK_VERSION" href="CMAKE_ANDROID_NDK_VERSION.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CL_64

CMAKE_CL_64¶

Discouraged.  Use CMAKE_SIZEOF_VOID_P instead.

Set to a true value when using a Microsoft Visual Studio cl compiler that
targets a 64-bit architecture.

Previous topic

CMAKE_ANDROID_NDK_VERSION

Next topic

CMAKE_COMPILER_2005

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CL_64

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CODEBLOCKS_COMPILER_ID — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES" href="CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES.html" />
    <link rel="prev" title="CMAKE_CLANG_VFS_OVERLAY" href="CMAKE_CLANG_VFS_OVERLAY.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CODEBLOCKS_COMPILER_ID

CMAKE_CODEBLOCKS_COMPILER_ID¶

New in version 3.11.

Change the compiler id in the generated CodeBlocks project files.

CodeBlocks uses its own compiler id string which differs from
CMAKE_<LANG>_COMPILER_ID.  If this variable is left empty,
CMake tries to recognize the CodeBlocks compiler id automatically.
Otherwise the specified string is used in the CodeBlocks project file.
See the CodeBlocks documentation for valid compiler id strings.

Other IDEs like QtCreator that also use the CodeBlocks generator may ignore
this setting.

Previous topic

CMAKE_CLANG_VFS_OVERLAY

Next topic

CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CODEBLOCKS_COMPILER_ID

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CODELITE_USE_TARGETS" href="CMAKE_CODELITE_USE_TARGETS.html" />
    <link rel="prev" title="CMAKE_CODEBLOCKS_COMPILER_ID" href="CMAKE_CODEBLOCKS_COMPILER_ID.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES

CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES¶

New in version 3.10.

Change the way the CodeBlocks generator creates project files.

If this variable evaluates to ON the generator excludes from
the project file any files that are located outside the project root.

Previous topic

CMAKE_CODEBLOCKS_COMPILER_ID

Next topic

CMAKE_CODELITE_USE_TARGETS

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CODELITE_USE_TARGETS — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_COLOR_DIAGNOSTICS" href="CMAKE_COLOR_DIAGNOSTICS.html" />
    <link rel="prev" title="CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES" href="CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CODELITE_USE_TARGETS

CMAKE_CODELITE_USE_TARGETS¶

New in version 3.7.

Change the way the CodeLite generator creates projectfiles.

If this variable evaluates to ON at the end of the top-level
CMakeLists.txt file, the generator creates projectfiles based on targets
rather than projects.

Previous topic

CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES

Next topic

CMAKE_COLOR_DIAGNOSTICS

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CODELITE_USE_TARGETS

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_COLOR_DIAGNOSTICS — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_COLOR_MAKEFILE" href="CMAKE_COLOR_MAKEFILE.html" />
    <link rel="prev" title="CMAKE_CODELITE_USE_TARGETS" href="CMAKE_CODELITE_USE_TARGETS.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COLOR_DIAGNOSTICS

CMAKE_COLOR_DIAGNOSTICS¶

New in version 3.24.

Enable color diagnostics throughout.

This variable uses three states: ON, OFF and not defined.

When not defined:

Makefile Generators initialize the CMAKE_COLOR_MAKEFILE
variable to ON.  It controls color buildsystem messages.

GNU/Clang compilers are not invoked with any color diagnostics flag.

When ON:

Makefile Generators produce color buildsystem messages by default.
CMAKE_COLOR_MAKEFILE is not initialized, but may be
explicitly set to OFF to disable color buildsystem messages.

GNU/Clang compilers are invoked with a flag enabling color diagnostics
(-fcolor-diagnostics).

When OFF:

Makefile Generators do not produce color buildsystem messages by
default.  CMAKE_COLOR_MAKEFILE is not initialized, but may be
explicitly set to ON to enable color buildsystem messages.

GNU/Clang compilers are invoked with a flag disabling color diagnostics
(-fno-color-diagnostics).

If the CMAKE_COLOR_DIAGNOSTICS environment variable is set, its
value is used.  Otherwise, CMAKE_COLOR_DIAGNOSTICS is not defined by
default.

Previous topic

CMAKE_CODELITE_USE_TARGETS

Next topic

CMAKE_COLOR_MAKEFILE

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COLOR_DIAGNOSTICS

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_COLOR_MAKEFILE — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CONFIGURATION_TYPES" href="CMAKE_CONFIGURATION_TYPES.html" />
    <link rel="prev" title="CMAKE_COLOR_DIAGNOSTICS" href="CMAKE_COLOR_DIAGNOSTICS.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COLOR_MAKEFILE

CMAKE_COLOR_MAKEFILE¶

Enables color output when using the Makefile Generators.

When enabled, the generated Makefiles will produce colored output.
Default is ON.

Previous topic

CMAKE_COLOR_DIAGNOSTICS

Next topic

CMAKE_CONFIGURATION_TYPES

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COLOR_MAKEFILE

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_COMMAND — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CPACK_COMMAND" href="CMAKE_CPACK_COMMAND.html" />
    <link rel="prev" title="CMAKE_CFG_INTDIR" href="CMAKE_CFG_INTDIR.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COMMAND

CMAKE_COMMAND¶

The full path to the cmake(1) executable.

This is the full path to the CMake executable cmake(1) which is
useful from custom commands that want to use the cmake -E option for
portable system commands.  (e.g.  /usr/local/bin/cmake)

Previous topic

CMAKE_CFG_INTDIR

Next topic

CMAKE_CPACK_COMMAND

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COMMAND

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_COMPILER_2005 — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_HOST_APPLE" href="CMAKE_HOST_APPLE.html" />
    <link rel="prev" title="CMAKE_CL_64" href="CMAKE_CL_64.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COMPILER_2005

CMAKE_COMPILER_2005¶

Using the Visual Studio 2005 compiler from Microsoft

Set to true when using the Visual Studio 2005 compiler from Microsoft.

Previous topic

CMAKE_CL_64

Next topic

CMAKE_HOST_APPLE

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COMPILER_2005

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_COMPILER_IS_GNUCC — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_COMPILER_IS_GNUCXX" href="CMAKE_COMPILER_IS_GNUCXX.html" />
    <link rel="prev" title="CMAKE_USE_RELATIVE_PATHS" href="CMAKE_USE_RELATIVE_PATHS.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COMPILER_IS_GNUCC

CMAKE_COMPILER_IS_GNUCC¶

True if the C compiler is GNU.

This variable is deprecated.  Use
CMAKE_C_COMPILER_ID instead.

Previous topic

CMAKE_USE_RELATIVE_PATHS

Next topic

CMAKE_COMPILER_IS_GNUCXX

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COMPILER_IS_GNUCC

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_COMPILER_IS_GNUCXX — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_COMPILER_IS_GNUG77" href="CMAKE_COMPILER_IS_GNUG77.html" />
    <link rel="prev" title="CMAKE_COMPILER_IS_GNUCC" href="CMAKE_COMPILER_IS_GNUCC.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COMPILER_IS_GNUCXX

CMAKE_COMPILER_IS_GNUCXX¶

True if the C++ (CXX) compiler is GNU.

This variable is deprecated.  Use
CMAKE_CXX_COMPILER_ID instead.

Previous topic

CMAKE_COMPILER_IS_GNUCC

Next topic

CMAKE_COMPILER_IS_GNUG77

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COMPILER_IS_GNUCXX

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_COMPILER_IS_GNUG77 — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CTEST_CVS_CHECKOUT" href="CTEST_CVS_CHECKOUT.html" />
    <link rel="prev" title="CMAKE_COMPILER_IS_GNUCXX" href="CMAKE_COMPILER_IS_GNUCXX.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COMPILER_IS_GNUG77

CMAKE_COMPILER_IS_GNUG77¶

True if the Fortran compiler is GNU.

This variable is deprecated.  Use
CMAKE_Fortran_COMPILER_ID instead.

Previous topic

CMAKE_COMPILER_IS_GNUCXX

Next topic

CTEST_CVS_CHECKOUT

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COMPILER_IS_GNUG77

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG>" href="CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_CONFIG.html" />
    <link rel="prev" title="CMAKE_BUILD_WITH_INSTALL_RPATH" href="CMAKE_BUILD_WITH_INSTALL_RPATH.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY

CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY¶

New in version 3.1.

Output directory for MS debug symbol .pdb files
generated by the compiler while building source files.

This variable is used to initialize the
COMPILE_PDB_OUTPUT_DIRECTORY property on all the targets.

Previous topic

CMAKE_BUILD_WITH_INSTALL_RPATH

Next topic

CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG>

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG> — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_COMPILE_WARNING_AS_ERROR" href="CMAKE_COMPILE_WARNING_AS_ERROR.html" />
    <link rel="prev" title="CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY" href="CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG>

<span id="variable:CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG>">
CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG>¶

New in version 3.1.

Per-configuration output directory for MS debug symbol .pdb files
generated by the compiler while building source files.

This is a per-configuration version of
CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY.
This variable is used to initialize the
COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG>
property on all the targets.

Previous topic

CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY

Next topic

CMAKE_COMPILE_WARNING_AS_ERROR

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG>

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_COMPILE_WARNING_AS_ERROR — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_<CONFIG>_POSTFIX" href="CMAKE_CONFIG_POSTFIX.html" />
    <link rel="prev" title="CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG>" href="CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_CONFIG.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COMPILE_WARNING_AS_ERROR

CMAKE_COMPILE_WARNING_AS_ERROR¶

New in version 3.24.

Specify whether to treat warnings on compile as errors.

This variable is used to initialize the
COMPILE_WARNING_AS_ERROR property on all the targets.

Previous topic

CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_<CONFIG>

Next topic

CMAKE_<CONFIG>_POSTFIX

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_COMPILE_WARNING_AS_ERROR

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CONFIGURATION_TYPES — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_DEPENDS_IN_PROJECT_ONLY" href="CMAKE_DEPENDS_IN_PROJECT_ONLY.html" />
    <link rel="prev" title="CMAKE_COLOR_MAKEFILE" href="CMAKE_COLOR_MAKEFILE.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CONFIGURATION_TYPES

CMAKE_CONFIGURATION_TYPES¶

Specifies the available build types (configurations) on multi-config
generators (e.g. Visual Studio,
Xcode, or Ninja Multi-Config) as a
semicolon-separated list.  Typical entries
include Debug, Release, RelWithDebInfo and MinSizeRel,
but custom build types can also be defined.

This variable is initialized by the first project() or
enable_language() command called in a project when a new build
tree is first created.  If the CMAKE_CONFIGURATION_TYPES
environment variable is set, its value is used.  Otherwise, the default
value is generator-specific.

Depending on the situation, the values in this variable may be treated
case-sensitively or case-insensitively.  See Build Configurations
for discussion of this and other related topics.

For single-config generators, see CMAKE_BUILD_TYPE.

Previous topic

CMAKE_COLOR_MAKEFILE

Next topic

CMAKE_DEPENDS_IN_PROJECT_ONLY

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CONFIGURATION_TYPES

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_<CONFIG>_POSTFIX — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CROSS_CONFIGS" href="CMAKE_CROSS_CONFIGS.html" />
    <link rel="prev" title="CMAKE_COMPILE_WARNING_AS_ERROR" href="CMAKE_COMPILE_WARNING_AS_ERROR.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_<CONFIG>_POSTFIX

<span id="variable:CMAKE_<CONFIG>_POSTFIX">
CMAKE_<CONFIG>_POSTFIX¶

Default filename postfix for libraries under configuration <CONFIG>.

When a non-executable target is created its <CONFIG>_POSTFIX
target property is initialized with the value of this variable if it is set.

Previous topic

CMAKE_COMPILE_WARNING_AS_ERROR

Next topic

CMAKE_CROSS_CONFIGS

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_<CONFIG>_POSTFIX

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CPACK_COMMAND — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CROSSCOMPILING" href="CMAKE_CROSSCOMPILING.html" />
    <link rel="prev" title="CMAKE_COMMAND" href="CMAKE_COMMAND.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CPACK_COMMAND

CMAKE_CPACK_COMMAND¶

New in version 3.13.

Full path to cpack(1) command installed with CMake.

This is the full path to the CPack executable cpack(1)
that can be used for custom commands or tests to invoke
CPack commands.

Previous topic

CMAKE_COMMAND

Next topic

CMAKE_CROSSCOMPILING

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CPACK_COMMAND

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CROSSCOMPILING — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CROSSCOMPILING_EMULATOR" href="CMAKE_CROSSCOMPILING_EMULATOR.html" />
    <link rel="prev" title="CMAKE_CPACK_COMMAND" href="CMAKE_CPACK_COMMAND.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CROSSCOMPILING

CMAKE_CROSSCOMPILING¶

This variable is set by CMake to indicate whether it is cross compiling,
but note limitations discussed below.

This variable will be set to true by CMake if the CMAKE_SYSTEM_NAME
variable has been set manually (i.e. in a toolchain file or as a cache entry
from the cmake command line). In most cases, manually
setting CMAKE_SYSTEM_NAME will only be done when cross compiling
since, if not manually set, it will be given the same value as
CMAKE_HOST_SYSTEM_NAME, which is correct for
the non-cross-compiling case. In the event that CMAKE_SYSTEM_NAME
is manually set to the same value as CMAKE_HOST_SYSTEM_NAME, then
CMAKE_CROSSCOMPILING will still be set to true.

Another case to be aware of is that builds targeting Apple platforms other than
macOS are handled differently to other cross compiling scenarios. Rather than
relying on CMAKE_SYSTEM_NAME to select the target platform, Apple
device builds use CMAKE_OSX_SYSROOT to select the appropriate SDK,
which indirectly determines the target platform. Furthermore, when using the
Xcode generator, developers can switch between device and
simulator builds at build time rather than having a single
choice at configure time, so the concept
of whether the build is cross compiling or not is more complex. Therefore, the
use of CMAKE_CROSSCOMPILING is not recommended for projects targeting Apple
devices.

Previous topic

CMAKE_CPACK_COMMAND

Next topic

CMAKE_CROSSCOMPILING_EMULATOR

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CROSSCOMPILING

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CROSSCOMPILING_EMULATOR — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CTEST_COMMAND" href="CMAKE_CTEST_COMMAND.html" />
    <link rel="prev" title="CMAKE_CROSSCOMPILING" href="CMAKE_CROSSCOMPILING.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CROSSCOMPILING_EMULATOR

CMAKE_CROSSCOMPILING_EMULATOR¶

New in version 3.3.

This variable is only used when CMAKE_CROSSCOMPILING is on. It
should point to a command on the host system that can run executable built
for the target system.

New in version 3.15: If this variable contains a semicolon-separated list, then the first value is the command and remaining values are its
arguments.

New in version 3.28: This variable can be initialized via an
CMAKE_CROSSCOMPILING_EMULATOR environment variable.

The command will be used to run try_run() generated executables,
which avoids manual population of the TryRunResults.cmake file.

This variable is also used as the default value for the
CROSSCOMPILING_EMULATOR target property of executables.  However,
while generator expressions are
supported by the target property (since CMake 3.29), they are not supported
by this variable's try_run() functionality.

Previous topic

CMAKE_CROSSCOMPILING

Next topic

CMAKE_CTEST_COMMAND

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CROSSCOMPILING_EMULATOR

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CROSS_CONFIGS — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CTEST_ARGUMENTS" href="CMAKE_CTEST_ARGUMENTS.html" />
    <link rel="prev" title="CMAKE_<CONFIG>_POSTFIX" href="CMAKE_CONFIG_POSTFIX.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CROSS_CONFIGS

CMAKE_CROSS_CONFIGS¶

New in version 3.17.

Specifies a semicolon-separated list of
configurations available from all build-<Config>.ninja files in the
Ninja Multi-Config generator.  This variable activates
cross-config mode. Targets from each config specified in this variable can be
built from any build-<Config>.ninja file. Custom commands will use the
configuration native to build-<Config>.ninja. If it is set to all, all
configurations from CMAKE_CONFIGURATION_TYPES are cross-configs. If
it is not specified, or empty, each build-<Config>.ninja file will only
contain build rules for its own configuration.

The value of this variable must be a subset of
CMAKE_CONFIGURATION_TYPES.

Previous topic

CMAKE_<CONFIG>_POSTFIX

Next topic

CMAKE_CTEST_ARGUMENTS

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CROSS_CONFIGS

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CTEST_ARGUMENTS — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS" href="CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS.html" />
    <link rel="prev" title="CMAKE_CROSS_CONFIGS" href="CMAKE_CROSS_CONFIGS.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CTEST_ARGUMENTS

CMAKE_CTEST_ARGUMENTS¶

New in version 3.17.

Set this to a semicolon-separated list of
command-line arguments to pass to ctest(1) when running tests
through the test (or RUN_TESTS) target of the generated build system.

Previous topic

CMAKE_CROSS_CONFIGS

Next topic

CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CTEST_ARGUMENTS

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CTEST_COMMAND — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CURRENT_BINARY_DIR" href="CMAKE_CURRENT_BINARY_DIR.html" />
    <link rel="prev" title="CMAKE_CROSSCOMPILING_EMULATOR" href="CMAKE_CROSSCOMPILING_EMULATOR.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CTEST_COMMAND

CMAKE_CTEST_COMMAND¶

Full path to ctest(1) command installed with CMake.

This is the full path to the CTest executable ctest(1)
that can be used for custom commands or tests to invoke
CTest commands.

Previous topic

CMAKE_CROSSCOMPILING_EMULATOR

Next topic

CMAKE_CURRENT_BINARY_DIR

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CTEST_COMMAND

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CUDA_ARCHITECTURES — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CUDA_COMPILE_FEATURES" href="CMAKE_CUDA_COMPILE_FEATURES.html" />
    <link rel="prev" title="CMAKE_C_STANDARD_REQUIRED" href="CMAKE_C_STANDARD_REQUIRED.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_ARCHITECTURES

CMAKE_CUDA_ARCHITECTURES¶

New in version 3.18.

Default value for CUDA_ARCHITECTURES property of targets.

Initialized by the CUDAARCHS environment variable if set.
Otherwise as follows depending on CMAKE_CUDA_COMPILER_ID:

For Clang: the oldest architecture that works.

For NVIDIA: the default architecture chosen by the compiler.
See policy CMP0104.

Users are encouraged to override this, as the default varies across compilers
and compiler versions.

This variable is used to initialize the CUDA_ARCHITECTURES property
on all targets. See the target property for additional information.

Examples¶

cmake_minimum_required(VERSION)

if(NOT DEFINED CMAKE_CUDA_ARCHITECTURES)
  set(CMAKE_CUDA_ARCHITECTURES 75)
endif()

project(example LANGUAGES CUDA)

CMAKE_CUDA_ARCHITECTURES will default to 75 unless overridden by the user.

Table of Contents

CMAKE_CUDA_ARCHITECTURES

Examples

Previous topic

CMAKE_C_STANDARD_REQUIRED

Next topic

CMAKE_CUDA_COMPILE_FEATURES

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_ARCHITECTURES

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CUDA_COMPILE_FEATURES — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CUDA_EXTENSIONS" href="CMAKE_CUDA_EXTENSIONS.html" />
    <link rel="prev" title="CMAKE_CUDA_ARCHITECTURES" href="CMAKE_CUDA_ARCHITECTURES.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_COMPILE_FEATURES

CMAKE_CUDA_COMPILE_FEATURES¶

New in version 3.17.

List of features known to the CUDA compiler

These features are known to be available for use with the CUDA compiler. This
list is a subset of the features listed in the
CMAKE_CUDA_KNOWN_FEATURES global property.

See the cmake-compile-features(7) manual for information on
compile features and a list of supported compilers.

Previous topic

CMAKE_CUDA_ARCHITECTURES

Next topic

CMAKE_CUDA_EXTENSIONS

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_COMPILE_FEATURES

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CUDA_EXTENSIONS — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CUDA_HOST_COMPILER" href="CMAKE_CUDA_HOST_COMPILER.html" />
    <link rel="prev" title="CMAKE_CUDA_COMPILE_FEATURES" href="CMAKE_CUDA_COMPILE_FEATURES.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_EXTENSIONS

CMAKE_CUDA_EXTENSIONS¶

New in version 3.8.

Default value for CUDA_EXTENSIONS target property if set when a
target is created.

See the cmake-compile-features(7) manual for information on
compile features and a list of supported compilers.

Previous topic

CMAKE_CUDA_COMPILE_FEATURES

Next topic

CMAKE_CUDA_HOST_COMPILER

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_EXTENSIONS

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CUDA_HOST_COMPILER — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CUDA_STANDARD" href="CMAKE_CUDA_STANDARD.html" />
    <link rel="prev" title="CMAKE_CUDA_EXTENSIONS" href="CMAKE_CUDA_EXTENSIONS.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_HOST_COMPILER

CMAKE_CUDA_HOST_COMPILER¶

New in version 3.10.

This is the original CUDA-specific name for the more general
CMAKE_<LANG>_HOST_COMPILER variable.  See the latter
for details.

Previous topic

CMAKE_CUDA_EXTENSIONS

Next topic

CMAKE_CUDA_STANDARD

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_HOST_COMPILER

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CUDA_RUNTIME_LIBRARY" href="CMAKE_CUDA_RUNTIME_LIBRARY.html" />
    <link rel="prev" title="CMAKE_CTEST_ARGUMENTS" href="CMAKE_CTEST_ARGUMENTS.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS

CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS¶

New in version 3.16.

Default value for CUDA_RESOLVE_DEVICE_SYMBOLS target
property when defined. By default this variable is not defined.

This variable is used to initialize the property on each target as
it is created.

Previous topic

CMAKE_CTEST_ARGUMENTS

Next topic

CMAKE_CUDA_RUNTIME_LIBRARY

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CUDA_RUNTIME_LIBRARY — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CUDA_SEPARABLE_COMPILATION" href="CMAKE_CUDA_SEPARABLE_COMPILATION.html" />
    <link rel="prev" title="CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS" href="CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_RUNTIME_LIBRARY

CMAKE_CUDA_RUNTIME_LIBRARY¶

New in version 3.17.

Select the CUDA runtime library for use when compiling and linking CUDA.
This variable is used to initialize the CUDA_RUNTIME_LIBRARY
property on all targets as they are created.

The allowed case insensitive values are:

None

Link with -cudart=none or equivalent flag(s) to use no CUDA
runtime library.

Shared

Link with -cudart=shared or equivalent flag(s) to use a
dynamically-linked CUDA runtime library.

Static

Link with -cudart=static or equivalent flag(s) to use a
statically-linked CUDA runtime library.

Contents of CMAKE_CUDA_RUNTIME_LIBRARY may use
generator expressions.

If this variable is not set then the CUDA_RUNTIME_LIBRARY target
property will not be set automatically.  If that property is not set then
CMake uses an appropriate default value based on the compiler to select the
CUDA runtime library.

Note

This property has effect only when the CUDA language is enabled. To
control the CUDA runtime linking when only using the CUDA SDK with the
C or C++ language we recommend using the FindCUDAToolkit
module.

Previous topic

CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS

Next topic

CMAKE_CUDA_SEPARABLE_COMPILATION

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_RUNTIME_LIBRARY

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CUDA_SEPARABLE_COMPILATION — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CXX_SCAN_FOR_MODULES" href="CMAKE_CXX_SCAN_FOR_MODULES.html" />
    <link rel="prev" title="CMAKE_CUDA_RUNTIME_LIBRARY" href="CMAKE_CUDA_RUNTIME_LIBRARY.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_SEPARABLE_COMPILATION

CMAKE_CUDA_SEPARABLE_COMPILATION¶

New in version 3.11.

Default value for CUDA_SEPARABLE_COMPILATION target property.
This variable is used to initialize the property on each target as it is
created.

Previous topic

CMAKE_CUDA_RUNTIME_LIBRARY

Next topic

CMAKE_CXX_SCAN_FOR_MODULES

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_SEPARABLE_COMPILATION

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CUDA_STANDARD — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CUDA_STANDARD_REQUIRED" href="CMAKE_CUDA_STANDARD_REQUIRED.html" />
    <link rel="prev" title="CMAKE_CUDA_HOST_COMPILER" href="CMAKE_CUDA_HOST_COMPILER.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_STANDARD

CMAKE_CUDA_STANDARD¶

New in version 3.8.

Default value for CUDA_STANDARD target property if set when a
target is created.

See the cmake-compile-features(7) manual for information on
compile features and a list of supported compilers.

Previous topic

CMAKE_CUDA_HOST_COMPILER

Next topic

CMAKE_CUDA_STANDARD_REQUIRED

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_STANDARD

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CUDA_STANDARD_REQUIRED — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES" href="CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES.html" />
    <link rel="prev" title="CMAKE_CUDA_STANDARD" href="CMAKE_CUDA_STANDARD.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_STANDARD_REQUIRED

CMAKE_CUDA_STANDARD_REQUIRED¶

New in version 3.8.

Default value for CUDA_STANDARD_REQUIRED target property if set
when a target is created.

See the cmake-compile-features(7) manual for information on
compile features and a list of supported compilers.

Previous topic

CMAKE_CUDA_STANDARD

Next topic

CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_STANDARD_REQUIRED

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CXX_COMPILE_FEATURES" href="CMAKE_CXX_COMPILE_FEATURES.html" />
    <link rel="prev" title="CMAKE_CUDA_STANDARD_REQUIRED" href="CMAKE_CUDA_STANDARD_REQUIRED.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES

CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES¶

New in version 3.8.

When the CUDA language has been enabled, this provides a
semicolon-separated list of include directories provided
by the CUDA Toolkit.  The value may be useful for C++ source files
to include CUDA headers.

Previous topic

CMAKE_CUDA_STANDARD_REQUIRED

Next topic

CMAKE_CXX_COMPILE_FEATURES

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CURRENT_BINARY_DIR — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CURRENT_FUNCTION" href="CMAKE_CURRENT_FUNCTION.html" />
    <link rel="prev" title="CMAKE_CTEST_COMMAND" href="CMAKE_CTEST_COMMAND.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CURRENT_BINARY_DIR

CMAKE_CURRENT_BINARY_DIR¶

The path to the binary directory currently being processed.

This is the full path to the build directory that is currently being
processed by cmake.  Each directory added by add_subdirectory() will
create a binary directory in the build tree, and as it is being
processed this variable will be set.  For in-source builds this is the
current source directory being processed.

When run in cmake -P script mode, CMake sets the variables
CMAKE_BINARY_DIR, CMAKE_SOURCE_DIR,
CMAKE_CURRENT_BINARY_DIR and
CMAKE_CURRENT_SOURCE_DIR to the current working directory.

Previous topic

CMAKE_CTEST_COMMAND

Next topic

CMAKE_CURRENT_FUNCTION

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CURRENT_BINARY_DIR

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CURRENT_FUNCTION — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CURRENT_FUNCTION_LIST_DIR" href="CMAKE_CURRENT_FUNCTION_LIST_DIR.html" />
    <link rel="prev" title="CMAKE_CURRENT_BINARY_DIR" href="CMAKE_CURRENT_BINARY_DIR.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CURRENT_FUNCTION

CMAKE_CURRENT_FUNCTION¶

New in version 3.17.

When executing code inside a function(), this variable
contains the name of the current function.  It can be useful for
diagnostic or debug messages.

See also CMAKE_CURRENT_FUNCTION_LIST_DIR,
CMAKE_CURRENT_FUNCTION_LIST_FILE and
CMAKE_CURRENT_FUNCTION_LIST_LINE.

Previous topic

CMAKE_CURRENT_BINARY_DIR

Next topic

CMAKE_CURRENT_FUNCTION_LIST_DIR

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CURRENT_FUNCTION

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CURRENT_FUNCTION_LIST_DIR — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CURRENT_FUNCTION_LIST_FILE" href="CMAKE_CURRENT_FUNCTION_LIST_FILE.html" />
    <link rel="prev" title="CMAKE_CURRENT_FUNCTION" href="CMAKE_CURRENT_FUNCTION.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CURRENT_FUNCTION_LIST_DIR

CMAKE_CURRENT_FUNCTION_LIST_DIR¶

New in version 3.17.

When executing code inside a function(), this variable
contains the full directory of the listfile that defined the current function.

It is quite common practice in CMake for modules to use some additional files,
such as templates to be copied in after substituting CMake variables.
In such cases, a function needs to know where to locate those files in a way
that doesn't depend on where the function is called.  Without
CMAKE_CURRENT_FUNCTION_LIST_DIR, the code to do that would typically use
the following pattern:

set(_THIS_MODULE_BASE_DIR "${CMAKE_CURRENT_LIST_DIR}")

function(foo)
  configure_file(
    "${_THIS_MODULE_BASE_DIR}/some.template.in"
    some.output
  )
endfunction()

Using CMAKE_CURRENT_FUNCTION_LIST_DIR inside the function instead
eliminates the need for the extra variable which would otherwise be visible
outside the function's scope.
The above example can be written in the more concise and more robust form:

function(foo)
  configure_file(
    "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/some.template.in"
    some.output
  )
endfunction()

See also CMAKE_CURRENT_FUNCTION,
CMAKE_CURRENT_FUNCTION_LIST_FILE and
CMAKE_CURRENT_FUNCTION_LIST_LINE.

Previous topic

CMAKE_CURRENT_FUNCTION

Next topic

CMAKE_CURRENT_FUNCTION_LIST_FILE

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CURRENT_FUNCTION_LIST_DIR

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.


code:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />

  <title>CMAKE_CURRENT_FUNCTION_LIST_FILE — CMake 3.29.0-rc3 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css" />

    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CMAKE_CURRENT_FUNCTION_LIST_LINE" href="CMAKE_CURRENT_FUNCTION_LIST_LINE.html" />
    <link rel="prev" title="CMAKE_CURRENT_FUNCTION_LIST_DIR" href="CMAKE_CURRENT_FUNCTION_LIST_DIR.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CURRENT_FUNCTION_LIST_FILE

CMAKE_CURRENT_FUNCTION_LIST_FILE¶

New in version 3.17.

When executing code inside a function(), this variable
contains the full path to the listfile that defined the current function.

See also CMAKE_CURRENT_FUNCTION,
CMAKE_CURRENT_FUNCTION_LIST_DIR and
CMAKE_CURRENT_FUNCTION_LIST_LINE.

Previous topic

CMAKE_CURRENT_FUNCTION_LIST_DIR

Next topic

CMAKE_CURRENT_FUNCTION_LIST_LINE

This Page

Show Source

Quick search

    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_CURRENT_FUNCTION_LIST_FILE

        © Copyright 2000-2024 Kitware, Inc. and Contributors.
      Created using Sphinx 6.2.1.