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_MESSAGE_CONTEXT — 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_MESSAGE_CONTEXT_SHOW" href="CMAKE_MESSAGE_CONTEXT_SHOW.html" />
    <link rel="prev" title="CMAKE_MAXIMUM_RECURSION_DEPTH" href="CMAKE_MAXIMUM_RECURSION_DEPTH.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_MESSAGE_CONTEXT

CMAKE_MESSAGE_CONTEXT¶

New in version 3.17.

When enabled by the cmake --log-context command line
option or the CMAKE_MESSAGE_CONTEXT_SHOW variable, the
message() command converts the CMAKE_MESSAGE_CONTEXT list into a
dot-separated string surrounded by square brackets and prepends it to each line
for messages of log levels NOTICE and below.

For logging contexts to work effectively, projects should generally
APPEND and POP_BACK an item to the current value of
CMAKE_MESSAGE_CONTEXT rather than replace it.
Projects should not assume the message context at the top of the source tree
is empty, as there are scenarios where the context might have already been set
(e.g. hierarchical projects).

Warning

Valid context names are restricted to anything that could be used
as a CMake variable name.  All names that begin with an underscore
or the string cmake_ are also reserved for use by CMake and
should not be used by projects.

Example:

function(bar)
  list(APPEND CMAKE_MESSAGE_CONTEXT "bar")
  message(VERBOSE "bar VERBOSE message")
endfunction()

function(baz)
  list(APPEND CMAKE_MESSAGE_CONTEXT "baz")
  message(DEBUG "baz DEBUG message")
endfunction()

function(foo)
  list(APPEND CMAKE_MESSAGE_CONTEXT "foo")
  bar()
  message(TRACE "foo TRACE message")
  baz()
endfunction()

list(APPEND CMAKE_MESSAGE_CONTEXT "top")

message(VERBOSE "Before `foo`")
foo()
message(VERBOSE "After `foo`")

list(POP_BACK CMAKE_MESSAGE_CONTEXT)

Which results in the following output:

-- [top] Before `foo`
-- [top.foo.bar] bar VERBOSE message
-- [top.foo] foo TRACE message
-- [top.foo.baz] baz DEBUG message
-- [top] After `foo`

Previous topic

CMAKE_MAXIMUM_RECURSION_DEPTH

Next topic

CMAKE_MESSAGE_CONTEXT_SHOW

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_MESSAGE_CONTEXT

        © 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_MESSAGE_CONTEXT_SHOW — 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_MESSAGE_INDENT" href="CMAKE_MESSAGE_INDENT.html" />
    <link rel="prev" title="CMAKE_MESSAGE_CONTEXT" href="CMAKE_MESSAGE_CONTEXT.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_MESSAGE_CONTEXT_SHOW

CMAKE_MESSAGE_CONTEXT_SHOW¶

New in version 3.17.

Setting this variable to true enables showing a context with each line
logged by the message() command (see CMAKE_MESSAGE_CONTEXT
for how the context itself is specified).

This variable is an alternative to providing the --log-context option
on the cmake command line.  Whereas the command line
option will apply only to that one CMake run, setting
CMAKE_MESSAGE_CONTEXT_SHOW to true as a cache variable will ensure that
subsequent CMake runs will continue to show the message context.

Projects should not set CMAKE_MESSAGE_CONTEXT_SHOW.  It is intended for
users so that they may control whether or not to include context with messages.

Previous topic

CMAKE_MESSAGE_CONTEXT

Next topic

CMAKE_MESSAGE_INDENT

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_MESSAGE_CONTEXT_SHOW

        © 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_MESSAGE_INDENT — 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_MESSAGE_LOG_LEVEL" href="CMAKE_MESSAGE_LOG_LEVEL.html" />
    <link rel="prev" title="CMAKE_MESSAGE_CONTEXT_SHOW" href="CMAKE_MESSAGE_CONTEXT_SHOW.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_MESSAGE_INDENT

CMAKE_MESSAGE_INDENT¶

New in version 3.16.

The message() command joins the strings from this list and for
log levels of NOTICE and below, it prepends the resultant string to
each line of the message.

Example:

list(APPEND listVar one two three)

message(VERBOSE [[Collected items in the "listVar":]])
list(APPEND CMAKE_MESSAGE_INDENT "  ")

foreach(item IN LISTS listVar)
  message(VERBOSE ${item})
endforeach()

list(POP_BACK CMAKE_MESSAGE_INDENT)
message(VERBOSE "No more indent")

Which results in the following output:

-- Collected items in the "listVar":
--   one
--   two
--   three
-- No more indent

Previous topic

CMAKE_MESSAGE_CONTEXT_SHOW

Next topic

CMAKE_MESSAGE_LOG_LEVEL

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_MESSAGE_INDENT

        © 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_MESSAGE_LOG_LEVEL — 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_MFC_FLAG" href="CMAKE_MFC_FLAG.html" />
    <link rel="prev" title="CMAKE_MESSAGE_INDENT" href="CMAKE_MESSAGE_INDENT.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_MESSAGE_LOG_LEVEL

CMAKE_MESSAGE_LOG_LEVEL¶

New in version 3.17.

When set, this variable specifies the logging level used by the
message() command.  Valid values are the same as those for the
--log-level command line option of the
cmake(1) program.  If this variable is set and the
--log-level command line option is
given, the command line option takes precedence.

The main advantage to using this variable is to make a log level persist
between CMake runs.  Setting it as a cache variable will ensure that
subsequent CMake runs will continue to use the chosen log level.

Projects should not set this variable, it is intended for users so that
they may control the log level according to their own needs.

New in version 3.25: See the cmake_language()
cmake_language command for a way to query
the current message logging level.

Previous topic

CMAKE_MESSAGE_INDENT

Next topic

CMAKE_MFC_FLAG

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_MESSAGE_LOG_LEVEL

        © 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_MFC_FLAG — 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_MODULE_PATH" href="CMAKE_MODULE_PATH.html" />
    <link rel="prev" title="CMAKE_MESSAGE_LOG_LEVEL" href="CMAKE_MESSAGE_LOG_LEVEL.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_MFC_FLAG

CMAKE_MFC_FLAG¶

Use the MFC library for an executable or dll.

Enables the use of the Microsoft Foundation Classes (MFC).
It should be set to 1 for the static MFC library, and
2 for the shared MFC library.  This is used in Visual Studio
project files.

Usage example:

add_definitions(-D_AFXDLL)
set(CMAKE_MFC_FLAG 2)
add_executable(CMakeSetup WIN32 ${SRCS})

Contents of CMAKE_MFC_FLAG may use
generator expressions.

Previous topic

CMAKE_MESSAGE_LOG_LEVEL

Next topic

CMAKE_MODULE_PATH

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_MFC_FLAG

        © 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_MINIMUM_REQUIRED_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_MINOR_VERSION" href="CMAKE_MINOR_VERSION.html" />
    <link rel="prev" title="CMAKE_MATCH_<n>" href="CMAKE_MATCH_n.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_MINIMUM_REQUIRED_VERSION

CMAKE_MINIMUM_REQUIRED_VERSION¶

The <min> version of CMake given to the most recent call to the
cmake_minimum_required(VERSION) command in the current
variable scope or any parent variable scope.

Previous topic

CMAKE_MATCH_<n>

Next topic

CMAKE_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_MINIMUM_REQUIRED_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_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_NETRC" href="CMAKE_NETRC.html" />
    <link rel="prev" title="CMAKE_MINIMUM_REQUIRED_VERSION" href="CMAKE_MINIMUM_REQUIRED_VERSION.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_MINOR_VERSION

CMAKE_MINOR_VERSION¶

Second version number component of the CMAKE_VERSION
variable.

Previous topic

CMAKE_MINIMUM_REQUIRED_VERSION

Next topic

CMAKE_NETRC

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_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_MODULE_LINKER_FLAGS — 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_MODULE_LINKER_FLAGS_<CONFIG>" href="CMAKE_MODULE_LINKER_FLAGS_CONFIG.html" />
    <link rel="prev" title="CMAKE_MAP_IMPORTED_CONFIG_<CONFIG>" href="CMAKE_MAP_IMPORTED_CONFIG_CONFIG.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_MODULE_LINKER_FLAGS

CMAKE_MODULE_LINKER_FLAGS¶

Linker flags to be used to create modules.

These flags will be used by the linker when creating a module.

Previous topic

CMAKE_MAP_IMPORTED_CONFIG_<CONFIG>

Next topic

CMAKE_MODULE_LINKER_FLAGS_<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_MODULE_LINKER_FLAGS

        © 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_MODULE_LINKER_FLAGS_<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_MODULE_LINKER_FLAGS_<CONFIG>_INIT" href="CMAKE_MODULE_LINKER_FLAGS_CONFIG_INIT.html" />
    <link rel="prev" title="CMAKE_MODULE_LINKER_FLAGS" href="CMAKE_MODULE_LINKER_FLAGS.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_MODULE_LINKER_FLAGS_<CONFIG>

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

Flags to be used when linking a module.

Same as CMAKE_C_FLAGS_* but used by the linker when creating modules.

Previous topic

CMAKE_MODULE_LINKER_FLAGS

Next topic

CMAKE_MODULE_LINKER_FLAGS_<CONFIG>_INIT

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_MODULE_LINKER_FLAGS_<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_MODULE_LINKER_FLAGS_<CONFIG>_INIT — 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_MODULE_LINKER_FLAGS_INIT" href="CMAKE_MODULE_LINKER_FLAGS_INIT.html" />
    <link rel="prev" title="CMAKE_MODULE_LINKER_FLAGS_<CONFIG>" href="CMAKE_MODULE_LINKER_FLAGS_CONFIG.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_MODULE_LINKER_FLAGS_<CONFIG>_INIT

<span id="variable:CMAKE_MODULE_LINKER_FLAGS_<CONFIG>_INIT">
CMAKE_MODULE_LINKER_FLAGS_<CONFIG>_INIT¶

New in version 3.7.

Value used to initialize the CMAKE_MODULE_LINKER_FLAGS_<CONFIG>
cache entry the first time a build tree is configured.
This variable is meant to be set by a toolchain file.  CMake may prepend or append content to
the value based on the environment and target platform.

See also CMAKE_MODULE_LINKER_FLAGS_INIT.

Previous topic

CMAKE_MODULE_LINKER_FLAGS_<CONFIG>

Next topic

CMAKE_MODULE_LINKER_FLAGS_INIT

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_MODULE_LINKER_FLAGS_<CONFIG>_INIT

        © 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_MODULE_LINKER_FLAGS_INIT — 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_MSVC_DEBUG_INFORMATION_FORMAT" href="CMAKE_MSVC_DEBUG_INFORMATION_FORMAT.html" />
    <link rel="prev" title="CMAKE_MODULE_LINKER_FLAGS_<CONFIG>_INIT" href="CMAKE_MODULE_LINKER_FLAGS_CONFIG_INIT.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_MODULE_LINKER_FLAGS_INIT

CMAKE_MODULE_LINKER_FLAGS_INIT¶

New in version 3.7.

Value used to initialize the CMAKE_MODULE_LINKER_FLAGS
cache entry the first time a build tree is configured.
This variable is meant to be set by a toolchain file.  CMake may prepend or append content to
the value based on the environment and target platform.

See also the configuration-specific variable
CMAKE_MODULE_LINKER_FLAGS_<CONFIG>_INIT.

Previous topic

CMAKE_MODULE_LINKER_FLAGS_<CONFIG>_INIT

Next topic

CMAKE_MSVC_DEBUG_INFORMATION_FORMAT

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_MODULE_LINKER_FLAGS_INIT

        © 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_MODULE_PATH — 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_POLICY_DEFAULT_CMP<NNNN>" href="CMAKE_POLICY_DEFAULT_CMPNNNN.html" />
    <link rel="prev" title="CMAKE_MFC_FLAG" href="CMAKE_MFC_FLAG.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_MODULE_PATH

CMAKE_MODULE_PATH¶

Semicolon-separated list of directories,
represented using forward slashes, specifying a search path for CMake modules
to be loaded by the include() or find_package() commands
before checking the default modules that come with CMake. By default it is
empty.  It is intended to be set by the project.

Previous topic

CMAKE_MFC_FLAG

Next topic

CMAKE_POLICY_DEFAULT_CMP<NNNN>

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_MODULE_PATH

        © 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_MSVCIDE_RUN_PATH — 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_NINJA_OUTPUT_PATH_PREFIX" href="CMAKE_NINJA_OUTPUT_PATH_PREFIX.html" />
    <link rel="prev" title="CMAKE_MSVC_RUNTIME_LIBRARY" href="CMAKE_MSVC_RUNTIME_LIBRARY.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_MSVCIDE_RUN_PATH

CMAKE_MSVCIDE_RUN_PATH¶

New in version 3.10.

Extra PATH locations that should be used when executing
add_custom_command() or add_custom_target() when using the
Visual Studio 9 2008 (or above) generator. This allows
for running commands and using dll's that the IDE environment is not aware of.

If not set explicitly the value is initialized by the CMAKE_MSVCIDE_RUN_PATH
environment variable, if set, and otherwise left empty.

Previous topic

CMAKE_MSVC_RUNTIME_LIBRARY

Next topic

CMAKE_NINJA_OUTPUT_PATH_PREFIX

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_MSVCIDE_RUN_PATH

        © 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_MSVC_DEBUG_INFORMATION_FORMAT — 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_MSVC_RUNTIME_LIBRARY" href="CMAKE_MSVC_RUNTIME_LIBRARY.html" />
    <link rel="prev" title="CMAKE_MODULE_LINKER_FLAGS_INIT" href="CMAKE_MODULE_LINKER_FLAGS_INIT.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_MSVC_DEBUG_INFORMATION_FORMAT

CMAKE_MSVC_DEBUG_INFORMATION_FORMAT¶

New in version 3.25.

Select the MSVC debug information format targeting the MSVC ABI.
This variable is used to initialize the
MSVC_DEBUG_INFORMATION_FORMAT property on all targets as they are
created.  It is also propagated by calls to the try_compile() command
into the test project.

The allowed values are:

Embedded

Compile with -Z7 or equivalent flag(s) to produce object files
with full symbolic debugging information.

ProgramDatabase

Compile with -Zi or equivalent flag(s) to produce a program
database that contains all the symbolic debugging information.

EditAndContinue

Compile with -ZI or equivalent flag(s) to produce a program
database that supports the Edit and Continue feature.

The value is ignored on compilers not targeting the MSVC ABI, but an
unsupported value will be rejected as an error when using a compiler
targeting the MSVC ABI.

The value may also be the empty string (""), in which case no debug
information format flag will be added explicitly by CMake.

Use generator expressions to
support per-configuration specification.  For example, the code:

set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>")

selects for all following targets the program database debug information format
for the Debug configuration.

If this variable is not set, the MSVC_DEBUG_INFORMATION_FORMAT
target property will not be set automatically.  If that property is not set,
CMake selects a debug information format using the default value
$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>, if supported by the
compiler, and otherwise $<$<CONFIG:Debug,RelWithDebInfo>:Embedded>.

Note

This variable has effect only when policy CMP0141 is set to NEW
prior to the first project() or enable_language() command
that enables a language using a compiler targeting the MSVC ABI.

Previous topic

CMAKE_MODULE_LINKER_FLAGS_INIT

Next topic

CMAKE_MSVC_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_MSVC_DEBUG_INFORMATION_FORMAT

        © 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_MSVC_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_MSVCIDE_RUN_PATH" href="CMAKE_MSVCIDE_RUN_PATH.html" />
    <link rel="prev" title="CMAKE_MSVC_DEBUG_INFORMATION_FORMAT" href="CMAKE_MSVC_DEBUG_INFORMATION_FORMAT.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_MSVC_RUNTIME_LIBRARY

CMAKE_MSVC_RUNTIME_LIBRARY¶

New in version 3.15.

Select the MSVC runtime library for use by compilers targeting the MSVC ABI.
This variable is used to initialize the MSVC_RUNTIME_LIBRARY
property on all targets as they are created.  It is also propagated by
calls to the try_compile() command into the test project.

The allowed values are:

MultiThreaded

Compile with -MT or equivalent flag(s) to use a multi-threaded
statically-linked runtime library.

MultiThreadedDLL

Compile with -MD or equivalent flag(s) to use a multi-threaded
dynamically-linked runtime library.

MultiThreadedDebug

Compile with -MTd or equivalent flag(s) to use a multi-threaded
statically-linked runtime library.

MultiThreadedDebugDLL

Compile with -MDd or equivalent flag(s) to use a multi-threaded
dynamically-linked runtime library.

The value is ignored on compilers not targeting the MSVC ABI, but an
unsupported value will be rejected as an error when using a compiler
targeting the MSVC ABI.

The value may also be the empty string ("") in which case no runtime
library selection flag will be added explicitly by CMake.  Note that with
Visual Studio Generators the native build system may choose to
add its own default runtime library selection flag.

Use generator expressions to
support per-configuration specification.  For example, the code:

set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")

selects for all following targets a multi-threaded statically-linked runtime
library with or without debug information depending on the configuration.

If this variable is not set then the MSVC_RUNTIME_LIBRARY target
property will not be set automatically.  If that property is not set then
CMake uses the default value MultiThreaded$<$<CONFIG:Debug>:Debug>DLL
to select a MSVC runtime library.

Note

This variable has effect only when policy CMP0091 is set to NEW
prior to the first project() or enable_language() command
that enables a language using a compiler targeting the MSVC ABI.

Previous topic

CMAKE_MSVC_DEBUG_INFORMATION_FORMAT

Next topic

CMAKE_MSVCIDE_RUN_PATH

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_MSVC_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_NETRC — 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_NETRC_FILE" href="CMAKE_NETRC_FILE.html" />
    <link rel="prev" title="CMAKE_MINOR_VERSION" href="CMAKE_MINOR_VERSION.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_NETRC

CMAKE_NETRC¶

New in version 3.11.

This variable is used to initialize the NETRC option for the
file(DOWNLOAD) and file(UPLOAD) commands.
See those commands for additional information.

This variable is also used by the ExternalProject and
FetchContent modules for internal calls to file(DOWNLOAD).

The local option takes precedence over this variable.

Previous topic

CMAKE_MINOR_VERSION

Next topic

CMAKE_NETRC_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_NETRC

        © 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_NETRC_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_PARENT_LIST_FILE" href="CMAKE_PARENT_LIST_FILE.html" />
    <link rel="prev" title="CMAKE_NETRC" href="CMAKE_NETRC.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_NETRC_FILE

CMAKE_NETRC_FILE¶

New in version 3.11.

This variable is used to initialize the NETRC_FILE option for the
file(DOWNLOAD) and file(UPLOAD) commands.
See those commands for additional information.

This variable is also used by the ExternalProject and
FetchContent modules for internal calls to file(DOWNLOAD).

The local option takes precedence over this variable.

Previous topic

CMAKE_NETRC

Next topic

CMAKE_PARENT_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_NETRC_FILE

        © 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_NINJA_OUTPUT_PATH_PREFIX — 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_NO_BUILTIN_CHRPATH" href="CMAKE_NO_BUILTIN_CHRPATH.html" />
    <link rel="prev" title="CMAKE_MSVCIDE_RUN_PATH" href="CMAKE_MSVCIDE_RUN_PATH.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_NINJA_OUTPUT_PATH_PREFIX

CMAKE_NINJA_OUTPUT_PATH_PREFIX¶

New in version 3.6.

Tell the Ninja Generators to add a prefix to every output path in
build.ninja.  A trailing slash is appended to the prefix, if missing.

This is useful when the generated ninja file is meant to be embedded as a
subninja file into a super ninja project.  For example, the command:

cd super-build-dir &&
cmake -G Ninja -S /path/to/src -B sub -DCMAKE_NINJA_OUTPUT_PATH_PREFIX=sub/
#                                 ^^^---------- these match -----------^^^

generates a build directory with its top-level (CMAKE_BINARY_DIR)
in super-build-dir/sub.  The path to the build directory ends in the
output path prefix.  This makes it suitable for use in a separately-written
super-build-dir/build.ninja file with a directive like this:

subninja sub/build.ninja

The auto-regeneration rule in super-build-dir/build.ninja must
have an order-only dependency on sub/build.ninja.

New in version 3.27: The Ninja Multi-Config generator supports this variable.

Note

When CMAKE_NINJA_OUTPUT_PATH_PREFIX is set, the project generated
by CMake cannot be used as a standalone project.  No default targets
are specified.

The value of CMAKE_NINJA_OUTPUT_PATH_PREFIX must match one or more
path components at the end of CMAKE_BINARY_DIR, or the
behavior is undefined.  However, this requirement is not checked
automatically.

Previous topic

CMAKE_MSVCIDE_RUN_PATH

Next topic

CMAKE_NO_BUILTIN_CHRPATH

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_NINJA_OUTPUT_PATH_PREFIX

        © 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_NOT_USING_CONFIG_FLAGS — 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_VS_INTEL_Fortran_PROJECT_VERSION" href="CMAKE_VS_INTEL_Fortran_PROJECT_VERSION.html" />
    <link rel="prev" title="CMAKE_<LANG>_PLATFORM_ID" href="CMAKE_LANG_PLATFORM_ID.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_NOT_USING_CONFIG_FLAGS

CMAKE_NOT_USING_CONFIG_FLAGS¶

Skip _BUILD_TYPE flags if true.

This is an internal flag used by the generators in CMake to tell CMake
to skip the _BUILD_TYPE flags.

Previous topic

CMAKE_<LANG>_PLATFORM_ID

Next topic

CMAKE_VS_INTEL_Fortran_PROJECT_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_NOT_USING_CONFIG_FLAGS

        © 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_NO_BUILTIN_CHRPATH — 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_NO_SYSTEM_FROM_IMPORTED" href="CMAKE_NO_SYSTEM_FROM_IMPORTED.html" />
    <link rel="prev" title="CMAKE_NINJA_OUTPUT_PATH_PREFIX" href="CMAKE_NINJA_OUTPUT_PATH_PREFIX.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_NO_BUILTIN_CHRPATH

CMAKE_NO_BUILTIN_CHRPATH¶

Do not use the builtin binary editor to fix runtime library search
paths on installation.

When an ELF or XCOFF binary needs to have a different runtime library
search path after installation than it does in the build tree, CMake uses
a builtin editor to change the runtime search path in the installed copy.
If this variable is set to true then CMake will relink the binary before
installation instead of using its builtin editor.

For more information on RPATH handling see
the INSTALL_RPATH and BUILD_RPATH target properties.

New in version 3.20: This variable also applies to XCOFF binaries' LIBPATH.  Prior to the
addition of the XCOFF editor in CMake 3.20, this variable applied only
to ELF binaries' RPATH/RUNPATH.

Previous topic

CMAKE_NINJA_OUTPUT_PATH_PREFIX

Next topic

CMAKE_NO_SYSTEM_FROM_IMPORTED

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_NO_BUILTIN_CHRPATH

        © 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_NO_SYSTEM_FROM_IMPORTED — 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_OPTIMIZE_DEPENDENCIES" href="CMAKE_OPTIMIZE_DEPENDENCIES.html" />
    <link rel="prev" title="CMAKE_NO_BUILTIN_CHRPATH" href="CMAKE_NO_BUILTIN_CHRPATH.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_NO_SYSTEM_FROM_IMPORTED

CMAKE_NO_SYSTEM_FROM_IMPORTED¶

Default value for NO_SYSTEM_FROM_IMPORTED of targets.

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

Previous topic

CMAKE_NO_BUILTIN_CHRPATH

Next topic

CMAKE_OPTIMIZE_DEPENDENCIES

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_NO_SYSTEM_FROM_IMPORTED

        © 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_OBJCXX_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_OBJCXX_STANDARD" href="CMAKE_OBJCXX_STANDARD.html" />
    <link rel="prev" title="CMAKE_OBJC_STANDARD_REQUIRED" href="CMAKE_OBJC_STANDARD_REQUIRED.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_OBJCXX_EXTENSIONS

CMAKE_OBJCXX_EXTENSIONS¶

New in version 3.16.

Default value for OBJCXX_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_OBJC_STANDARD_REQUIRED

Next topic

CMAKE_OBJCXX_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_OBJCXX_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_OBJCXX_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_OBJCXX_STANDARD_REQUIRED" href="CMAKE_OBJCXX_STANDARD_REQUIRED.html" />
    <link rel="prev" title="CMAKE_OBJCXX_EXTENSIONS" href="CMAKE_OBJCXX_EXTENSIONS.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_OBJCXX_STANDARD

CMAKE_OBJCXX_STANDARD¶

New in version 3.16.

Default value for OBJCXX_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_OBJCXX_EXTENSIONS

Next topic

CMAKE_OBJCXX_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_OBJCXX_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_OBJCXX_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_Swift_LANGUAGE_VERSION" href="CMAKE_Swift_LANGUAGE_VERSION.html" />
    <link rel="prev" title="CMAKE_OBJCXX_STANDARD" href="CMAKE_OBJCXX_STANDARD.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_OBJCXX_STANDARD_REQUIRED

CMAKE_OBJCXX_STANDARD_REQUIRED¶

New in version 3.16.

Default value for OBJCXX_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_OBJCXX_STANDARD

Next topic

CMAKE_Swift_LANGUAGE_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_OBJCXX_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_OBJC_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_OBJC_STANDARD" href="CMAKE_OBJC_STANDARD.html" />
    <link rel="prev" title="CMAKE_<LANG>_STANDARD_REQUIRED" href="CMAKE_LANG_STANDARD_REQUIRED.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_OBJC_EXTENSIONS

CMAKE_OBJC_EXTENSIONS¶

New in version 3.16.

Default value for OBJC_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_<LANG>_STANDARD_REQUIRED

Next topic

CMAKE_OBJC_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_OBJC_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_OBJC_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_OBJC_STANDARD_REQUIRED" href="CMAKE_OBJC_STANDARD_REQUIRED.html" />
    <link rel="prev" title="CMAKE_OBJC_EXTENSIONS" href="CMAKE_OBJC_EXTENSIONS.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_OBJC_STANDARD

CMAKE_OBJC_STANDARD¶

New in version 3.16.

Default value for OBJC_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_OBJC_EXTENSIONS

Next topic

CMAKE_OBJC_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_OBJC_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_OBJC_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_OBJCXX_EXTENSIONS" href="CMAKE_OBJCXX_EXTENSIONS.html" />
    <link rel="prev" title="CMAKE_OBJC_STANDARD" href="CMAKE_OBJC_STANDARD.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_OBJC_STANDARD_REQUIRED

CMAKE_OBJC_STANDARD_REQUIRED¶

New in version 3.16.

Default value for OBJC_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_OBJC_STANDARD

Next topic

CMAKE_OBJCXX_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_OBJC_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_OBJECT_PATH_MAX — 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_SYSTEM" href="CMAKE_SYSTEM.html" />
    <link rel="prev" title="CMAKE_LIBRARY_ARCHITECTURE_REGEX" href="CMAKE_LIBRARY_ARCHITECTURE_REGEX.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_OBJECT_PATH_MAX

CMAKE_OBJECT_PATH_MAX¶

Maximum object file full-path length allowed by native build tools.

CMake computes for every source file an object file name that is
unique to the source file and deterministic with respect to the full
path to the source file.  This allows multiple source files in a
target to share the same name if they lie in different directories
without rebuilding when one is added or removed.  However, it can
produce long full paths in a few cases, so CMake shortens the path
using a hashing scheme when the full path to an object file exceeds a
limit.  CMake has a built-in limit for each platform that is
sufficient for common tools, but some native tools may have a lower
limit.  This variable may be set to specify the limit explicitly.  The
value must be an integer no less than 128.

Previous topic

CMAKE_LIBRARY_ARCHITECTURE_REGEX

Next topic

CMAKE_SYSTEM

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_OBJECT_PATH_MAX

        © 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_OPTIMIZE_DEPENDENCIES — 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_OSX_ARCHITECTURES" href="CMAKE_OSX_ARCHITECTURES.html" />
    <link rel="prev" title="CMAKE_NO_SYSTEM_FROM_IMPORTED" href="CMAKE_NO_SYSTEM_FROM_IMPORTED.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_OPTIMIZE_DEPENDENCIES

CMAKE_OPTIMIZE_DEPENDENCIES¶

New in version 3.19.

Initializes the OPTIMIZE_DEPENDENCIES target property.

Previous topic

CMAKE_NO_SYSTEM_FROM_IMPORTED

Next topic

CMAKE_OSX_ARCHITECTURES

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_OPTIMIZE_DEPENDENCIES

        © 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_OSX_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_OSX_DEPLOYMENT_TARGET" href="CMAKE_OSX_DEPLOYMENT_TARGET.html" />
    <link rel="prev" title="CMAKE_OPTIMIZE_DEPENDENCIES" href="CMAKE_OPTIMIZE_DEPENDENCIES.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_OSX_ARCHITECTURES

CMAKE_OSX_ARCHITECTURES¶

Target specific architectures for macOS and iOS.

This variable is used to initialize the OSX_ARCHITECTURES
property on each target as it is created.  See that target property
for additional information.

The value of this variable should be set prior to the first
project() or enable_language() command invocation
because it may influence configuration of the toolchain and flags.
It is intended to be set locally by the user creating a build tree.
This variable should be set as a CACHE entry (or else CMake may
remove it while initializing a cache entry of the same name) unless
policy CMP0126 is set to NEW.

Despite the OSX part in the variable name(s) they apply also to
other SDKs than macOS like iOS, tvOS, visionOS, or watchOS.

This variable is ignored on platforms other than Apple.

Previous topic

CMAKE_OPTIMIZE_DEPENDENCIES

Next topic

CMAKE_OSX_DEPLOYMENT_TARGET

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_OSX_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_OSX_DEPLOYMENT_TARGET — 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_OSX_SYSROOT" href="CMAKE_OSX_SYSROOT.html" />
    <link rel="prev" title="CMAKE_OSX_ARCHITECTURES" href="CMAKE_OSX_ARCHITECTURES.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_OSX_DEPLOYMENT_TARGET

CMAKE_OSX_DEPLOYMENT_TARGET¶

Specify the minimum version of the target platform (e.g. macOS or iOS)
on which the target binaries are to be deployed.  CMake uses this
variable value for the -mmacosx-version-min flag or their respective
target platform equivalents.  For older Xcode versions that shipped
multiple macOS SDKs this variable also helps to choose the SDK in case
CMAKE_OSX_SYSROOT is unset.

If not set explicitly the value is initialized by the
MACOSX_DEPLOYMENT_TARGET environment variable, if set,
and otherwise computed based on the host platform.

The value of this variable should be set prior to the first
project() or enable_language() command invocation
because it may influence configuration of the toolchain and flags.
It is intended to be set locally by the user creating a build tree.
This variable should be set as a CACHE entry (or else CMake may
remove it while initializing a cache entry of the same name) unless
policy CMP0126 is set to NEW.

Despite the OSX part in the variable name(s) they apply also to
other SDKs than macOS like iOS, tvOS, visionOS, or watchOS.

This variable is ignored on platforms other than Apple.

Previous topic

CMAKE_OSX_ARCHITECTURES

Next topic

CMAKE_OSX_SYSROOT

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_OSX_DEPLOYMENT_TARGET

        © 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_OSX_SYSROOT — 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_PCH_INSTANTIATE_TEMPLATES" href="CMAKE_PCH_INSTANTIATE_TEMPLATES.html" />
    <link rel="prev" title="CMAKE_OSX_DEPLOYMENT_TARGET" href="CMAKE_OSX_DEPLOYMENT_TARGET.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_OSX_SYSROOT

CMAKE_OSX_SYSROOT¶

Specify the location or name of the macOS platform SDK to be used.
CMake uses this value to compute the value of the -isysroot flag
or equivalent and to help the find_* commands locate files in
the SDK.

If not set explicitly the value is initialized by the SDKROOT
environment variable, if set, and otherwise computed based on the
CMAKE_OSX_DEPLOYMENT_TARGET or the host platform.

The value of this variable should be set prior to the first
project() or enable_language() command invocation
because it may influence configuration of the toolchain and flags.
It is intended to be set locally by the user creating a build tree.
This variable should be set as a CACHE entry (or else CMake may
remove it while initializing a cache entry of the same name) unless
policy CMP0126 is set to NEW.

Despite the OSX part in the variable name(s) they apply also to
other SDKs than macOS like iOS, tvOS, visionOS, or watchOS.

This variable is ignored on platforms other than Apple.

Previous topic

CMAKE_OSX_DEPLOYMENT_TARGET

Next topic

CMAKE_PCH_INSTANTIATE_TEMPLATES

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_OSX_SYSROOT

        © 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_PARENT_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_PATCH_VERSION" href="CMAKE_PATCH_VERSION.html" />
    <link rel="prev" title="CMAKE_NETRC_FILE" href="CMAKE_NETRC_FILE.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_PARENT_LIST_FILE

CMAKE_PARENT_LIST_FILE¶

Full path to the CMake file that included the current one.

While processing a CMake file loaded by include() or
find_package() this variable contains the full path to the file
including it.  The top of the include stack is always the CMakeLists.txt
for the current directory.  See also CMAKE_CURRENT_LIST_FILE.

Previous topic

CMAKE_NETRC_FILE

Next topic

CMAKE_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_PARENT_LIST_FILE

        © 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_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_PROJECT_DESCRIPTION" href="CMAKE_PROJECT_DESCRIPTION.html" />
    <link rel="prev" title="CMAKE_PARENT_LIST_FILE" href="CMAKE_PARENT_LIST_FILE.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_PATCH_VERSION

CMAKE_PATCH_VERSION¶

Third version number component of the CMAKE_VERSION
variable.

Previous topic

CMAKE_PARENT_LIST_FILE

Next topic

CMAKE_PROJECT_DESCRIPTION

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_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_PCH_INSTANTIATE_TEMPLATES — 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_PCH_WARN_INVALID" href="CMAKE_PCH_WARN_INVALID.html" />
    <link rel="prev" title="CMAKE_OSX_SYSROOT" href="CMAKE_OSX_SYSROOT.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_PCH_INSTANTIATE_TEMPLATES

CMAKE_PCH_INSTANTIATE_TEMPLATES¶

New in version 3.19.

This variable is used to initialize the PCH_INSTANTIATE_TEMPLATES
property of targets when they are created.

Previous topic

CMAKE_OSX_SYSROOT

Next topic

CMAKE_PCH_WARN_INVALID

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_PCH_INSTANTIATE_TEMPLATES

        © 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_PCH_WARN_INVALID — 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_PDB_OUTPUT_DIRECTORY" href="CMAKE_PDB_OUTPUT_DIRECTORY.html" />
    <link rel="prev" title="CMAKE_PCH_INSTANTIATE_TEMPLATES" href="CMAKE_PCH_INSTANTIATE_TEMPLATES.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_PCH_WARN_INVALID

CMAKE_PCH_WARN_INVALID¶

New in version 3.18.

This variable is used to initialize the PCH_WARN_INVALID
property of targets when they are created.

Previous topic

CMAKE_PCH_INSTANTIATE_TEMPLATES

Next topic

CMAKE_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_PCH_WARN_INVALID

        © 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_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_PDB_OUTPUT_DIRECTORY_<CONFIG>" href="CMAKE_PDB_OUTPUT_DIRECTORY_CONFIG.html" />
    <link rel="prev" title="CMAKE_PCH_WARN_INVALID" href="CMAKE_PCH_WARN_INVALID.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_PDB_OUTPUT_DIRECTORY

CMAKE_PDB_OUTPUT_DIRECTORY¶

Output directory for MS debug symbol .pdb files generated by the
linker for executable and shared library targets.

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

Previous topic

CMAKE_PCH_WARN_INVALID

Next topic

CMAKE_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_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_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_PLATFORM_NO_VERSIONED_SONAME" href="CMAKE_PLATFORM_NO_VERSIONED_SONAME.html" />
    <link rel="prev" title="CMAKE_PDB_OUTPUT_DIRECTORY" href="CMAKE_PDB_OUTPUT_DIRECTORY.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_PDB_OUTPUT_DIRECTORY_<CONFIG>

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

Per-configuration output directory for MS debug symbol .pdb files
generated by the linker for executable and shared library targets.

This is a per-configuration version of CMAKE_PDB_OUTPUT_DIRECTORY.
This variable is used to initialize the
PDB_OUTPUT_DIRECTORY_<CONFIG>
property on all the targets.  See that target property for additional
information.

Previous topic

CMAKE_PDB_OUTPUT_DIRECTORY

Next topic

CMAKE_PLATFORM_NO_VERSIONED_SONAME

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_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_PLATFORM_NO_VERSIONED_SONAME — 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_POSITION_INDEPENDENT_CODE" href="CMAKE_POSITION_INDEPENDENT_CODE.html" />
    <link rel="prev" title="CMAKE_PDB_OUTPUT_DIRECTORY_<CONFIG>" href="CMAKE_PDB_OUTPUT_DIRECTORY_CONFIG.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_PLATFORM_NO_VERSIONED_SONAME

CMAKE_PLATFORM_NO_VERSIONED_SONAME¶

New in version 3.1.

This variable is used to globally control whether the
VERSION and SOVERSION target
properties should be used for shared libraries.
When set to true, adding version information to each
shared library target is disabled.

By default this variable is set only on platforms where
CMake knows it is needed.   On other platforms, the
specified properties will be used for shared libraries.

Previous topic

CMAKE_PDB_OUTPUT_DIRECTORY_<CONFIG>

Next topic

CMAKE_POSITION_INDEPENDENT_CODE

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_PLATFORM_NO_VERSIONED_SONAME

        © 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_POLICY_DEFAULT_CMP<NNNN> — 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_POLICY_WARNING_CMP<NNNN>" href="CMAKE_POLICY_WARNING_CMPNNNN.html" />
    <link rel="prev" title="CMAKE_MODULE_PATH" href="CMAKE_MODULE_PATH.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_POLICY_DEFAULT_CMP<NNNN>

<span id="variable:CMAKE_POLICY_DEFAULT_CMP<NNNN>">
CMAKE_POLICY_DEFAULT_CMP<NNNN>¶

Default for CMake Policy CMP<NNNN> when it is otherwise left unset.

Commands cmake_minimum_required(VERSION) and
cmake_policy(VERSION) by default leave policies introduced after
the given version unset.  Set CMAKE_POLICY_DEFAULT_CMP<NNNN> to OLD
or NEW to specify the default for policy CMP<NNNN>, where <NNNN>
is the policy number.

This variable should not be set by a project in CMake code as a way to
set its own policies; use cmake_policy(SET) instead.  This
variable is meant to externally set policies for which a project has
not itself been updated:

Users running CMake may set this variable in the cache
(e.g. -DCMAKE_POLICY_DEFAULT_CMP<NNNN>=<OLD|NEW>).  Set it to OLD
to quiet a policy warning while using old behavior or to NEW to
try building the project with new behavior.

Projects may set this variable before a call to add_subdirectory()
that adds a third-party project in order to set its policies without
modifying third-party code.

Previous topic

CMAKE_MODULE_PATH

Next topic

CMAKE_POLICY_WARNING_CMP<NNNN>

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_POLICY_DEFAULT_CMP<NNNN>

        © 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_POLICY_WARNING_CMP<NNNN> — 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_PREFIX_PATH" href="CMAKE_PREFIX_PATH.html" />
    <link rel="prev" title="CMAKE_POLICY_DEFAULT_CMP<NNNN>" href="CMAKE_POLICY_DEFAULT_CMPNNNN.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_POLICY_WARNING_CMP<NNNN>

<span id="variable:CMAKE_POLICY_WARNING_CMP<NNNN>">
CMAKE_POLICY_WARNING_CMP<NNNN>¶

Explicitly enable or disable the warning when CMake Policy CMP<NNNN>
has not been set explicitly by cmake_policy() or implicitly
by cmake_minimum_required(). This is meaningful
only for the policies that do not warn by default:

CMAKE_POLICY_WARNING_CMP0025 controls the warning for
policy CMP0025.

CMAKE_POLICY_WARNING_CMP0047 controls the warning for
policy CMP0047.

CMAKE_POLICY_WARNING_CMP0056 controls the warning for
policy CMP0056.

CMAKE_POLICY_WARNING_CMP0060 controls the warning for
policy CMP0060.

CMAKE_POLICY_WARNING_CMP0065 controls the warning for
policy CMP0065.

CMAKE_POLICY_WARNING_CMP0066 controls the warning for
policy CMP0066.

CMAKE_POLICY_WARNING_CMP0067 controls the warning for
policy CMP0067.

CMAKE_POLICY_WARNING_CMP0082 controls the warning for
policy CMP0082.

CMAKE_POLICY_WARNING_CMP0089 controls the warning for
policy CMP0089.

CMAKE_POLICY_WARNING_CMP0102 controls the warning for
policy CMP0102.

CMAKE_POLICY_WARNING_CMP0112 controls the warning for
policy CMP0112.

CMAKE_POLICY_WARNING_CMP0116 controls the warning for
policy CMP0116.

CMAKE_POLICY_WARNING_CMP0126 controls the warning for
policy CMP0126.

CMAKE_POLICY_WARNING_CMP0128 controls the warning for
policy CMP0128.

CMAKE_POLICY_WARNING_CMP0129 controls the warning for
policy CMP0129.

CMAKE_POLICY_WARNING_CMP0133 controls the warning for
policy CMP0133.

This variable should not be set by a project in CMake code.  Project
developers running CMake may set this variable in their cache to
enable the warning (e.g. -DCMAKE_POLICY_WARNING_CMP<NNNN>=ON).
Alternatively, running cmake(1) with the
--debug-output,
--trace, or
--trace-expand option will also
enable the warning.

Previous topic

CMAKE_POLICY_DEFAULT_CMP<NNNN>

Next topic

CMAKE_PREFIX_PATH

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_POLICY_WARNING_CMP<NNNN>

        © 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_POSITION_INDEPENDENT_CODE — 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_RUNTIME_OUTPUT_DIRECTORY" href="CMAKE_RUNTIME_OUTPUT_DIRECTORY.html" />
    <link rel="prev" title="CMAKE_PLATFORM_NO_VERSIONED_SONAME" href="CMAKE_PLATFORM_NO_VERSIONED_SONAME.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_POSITION_INDEPENDENT_CODE

CMAKE_POSITION_INDEPENDENT_CODE¶

Default value for POSITION_INDEPENDENT_CODE of targets.

This variable is used to initialize the
POSITION_INDEPENDENT_CODE property on all the targets.
See that target property for additional information.  If set, its
value is also used by the try_compile() command.

Previous topic

CMAKE_PLATFORM_NO_VERSIONED_SONAME

Next topic

CMAKE_RUNTIME_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_POSITION_INDEPENDENT_CODE

        © 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_PREFIX_PATH — 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_PROGRAM_PATH" href="CMAKE_PROGRAM_PATH.html" />
    <link rel="prev" title="CMAKE_POLICY_WARNING_CMP<NNNN>" href="CMAKE_POLICY_WARNING_CMPNNNN.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_PREFIX_PATH

CMAKE_PREFIX_PATH¶

Semicolon-separated list of directories specifying installation
prefixes to be searched by the find_package(),
find_program(), find_library(), find_file(), and
find_path() commands.  Each command will add appropriate
subdirectories (like bin, lib, or include) as specified in its own
documentation.

By default this is empty.  It is intended to be set by the project.

There is also an environment variable CMAKE_PREFIX_PATH, which is used
as an additional list of search prefixes.

See also CMAKE_SYSTEM_PREFIX_PATH, CMAKE_INCLUDE_PATH,
CMAKE_LIBRARY_PATH, CMAKE_PROGRAM_PATH, and
CMAKE_IGNORE_PATH.

Previous topic

CMAKE_POLICY_WARNING_CMP<NNNN>

Next topic

CMAKE_PROGRAM_PATH

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_PREFIX_PATH

        © 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_PROGRAM_PATH — 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_PROJECT_INCLUDE" href="CMAKE_PROJECT_INCLUDE.html" />
    <link rel="prev" title="CMAKE_PREFIX_PATH" href="CMAKE_PREFIX_PATH.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_PROGRAM_PATH

CMAKE_PROGRAM_PATH¶

Semicolon-separated list of directories specifying a search path
for the find_program() command.  By default it is empty, it is
intended to be set by the project.

There is also an environment variable CMAKE_PROGRAM_PATH, which is used
as an additional list of search directories.

See also CMAKE_SYSTEM_PROGRAM_PATH and CMAKE_PREFIX_PATH.

Previous topic

CMAKE_PREFIX_PATH

Next topic

CMAKE_PROJECT_INCLUDE

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_PROGRAM_PATH

        © 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_PROJECT_DESCRIPTION — 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_PROJECT_HOMEPAGE_URL" href="CMAKE_PROJECT_HOMEPAGE_URL.html" />
    <link rel="prev" title="CMAKE_PATCH_VERSION" href="CMAKE_PATCH_VERSION.html" />

Navigation

          index

          next |

          previous |

    CMake »

    3.29.0-rc3 Documentation »

cmake-variables(7) »

CMAKE_PROJECT_DESCRIPTION

CMAKE_PROJECT_DESCRIPTION¶

New in version 3.9.

The description of the top level project.

This variable holds the description of the project as specified in the top
level CMakeLists.txt file by a project() command.  In the event that
the top level CMakeLists.txt contains multiple project() calls,
the most recently called one from that top level CMakeLists.txt will determine
the value that CMAKE_PROJECT_DESCRIPTION contains.  For example, consider
the following top level CMakeLists.txt:

cmake_minimum_required(VERSION 3.0)
project(First DESCRIPTION "I am First")
project(Second DESCRIPTION "I am Second")
add_subdirectory(sub)
project(Third DESCRIPTION "I am Third")

And sub/CMakeLists.txt with the following contents:

project(SubProj DESCRIPTION "I am SubProj")
message("CMAKE_PROJECT_DESCRIPTION = ${CMAKE_PROJECT_DESCRIPTION}")

The most recently seen project() command from the top level
CMakeLists.txt would be project(Second ...), so this will print:

CMAKE_PROJECT_DESCRIPTION = I am Second

To obtain the description from the most recent call to project() in
the current directory scope or above, see the PROJECT_DESCRIPTION
variable.

Previous topic

CMAKE_PATCH_VERSION

Next topic

CMAKE_PROJECT_HOMEPAGE_URL

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_PROJECT_DESCRIPTION

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