mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Help:Check*: include CMAKE_REQUIRED_* vars to dedupe
CMAKE_REQUIRED_FLAGS now notes that space-delimited string, not ;-list is required, which could be surprising compared to similar options that do use ;-list
This commit is contained in:
@@ -21,22 +21,17 @@ Provides a macro to check if a header file can be included in ``C``.
|
||||
The following variables may be set before calling this macro to modify
|
||||
the way the check is run:
|
||||
|
||||
``CMAKE_REQUIRED_FLAGS``
|
||||
string of compile command line flags.
|
||||
``CMAKE_REQUIRED_DEFINITIONS``
|
||||
a :ref:`;-list <CMake Language Lists>` of macros to define (-DFOO=bar).
|
||||
``CMAKE_REQUIRED_INCLUDES``
|
||||
a :ref:`;-list <CMake Language Lists>` of header search paths to pass to
|
||||
the compiler.
|
||||
``CMAKE_REQUIRED_LINK_OPTIONS``
|
||||
.. versionadded:: 3.14
|
||||
a :ref:`;-list <CMake Language Lists>` of options to add to the link command.
|
||||
``CMAKE_REQUIRED_LIBRARIES``
|
||||
a :ref:`;-list <CMake Language Lists>` of libraries to add to the link
|
||||
command. See policy :policy:`CMP0075`.
|
||||
``CMAKE_REQUIRED_QUIET``
|
||||
.. versionadded:: 3.1
|
||||
execute quietly without messages.
|
||||
.. include:: /module/CMAKE_REQUIRED_FLAGS.txt
|
||||
|
||||
.. include:: /module/CMAKE_REQUIRED_DEFINITIONS.txt
|
||||
|
||||
.. include:: /module/CMAKE_REQUIRED_INCLUDES.txt
|
||||
|
||||
.. include:: /module/CMAKE_REQUIRED_LINK_OPTIONS.txt
|
||||
|
||||
.. include:: /module/CMAKE_REQUIRED_LIBRARIES.txt
|
||||
|
||||
.. include:: /module/CMAKE_REQUIRED_QUIET.txt
|
||||
|
||||
See the :module:`CheckIncludeFiles` module to check for multiple headers
|
||||
at once. See the :module:`CheckIncludeFileCXX` module to check for headers
|
||||
|
||||
Reference in New Issue
Block a user