summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-05-14 14:24:57 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-05-14 14:25:33 (GMT)
commit8aa598a0b7fcf1efae9d9b12be4e6ba27e10fa69 (patch)
tree96de7da713c1de00055685a5fed6c4e964aa6e37 /Help
parent646c921ce6e4b2338501f51baaa989ceca0b2508 (diff)
parentfc2bce54c73477ae20e8c80b2952819985ddf673 (diff)
downloadCMake-8aa598a0b7fcf1efae9d9b12be4e6ba27e10fa69.zip
CMake-8aa598a0b7fcf1efae9d9b12be4e6ba27e10fa69.tar.gz
CMake-8aa598a0b7fcf1efae9d9b12be4e6ba27e10fa69.tar.bz2
Merge topic 'help-options'
fc2bce54c7 Help: try_compile how to pass compiler options Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9512
Diffstat (limited to 'Help')
-rw-r--r--Help/command/try_compile.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Help/command/try_compile.rst b/Help/command/try_compile.rst
index 5021851..9ee1d01 100644
--- a/Help/command/try_compile.rst
+++ b/Help/command/try_compile.rst
@@ -156,8 +156,9 @@ The options for the above signatures are:
Specify flags of the form :option:`-DVAR:TYPE=VALUE <cmake -D>` to be passed
to the :manual:`cmake(1)` command-line used to drive the test build.
The above example shows how values for variables
- ``INCLUDE_DIRECTORIES``, ``LINK_DIRECTORIES``, and ``LINK_LIBRARIES``
- are used.
+ ``COMPILE_DEFINITIONS``, ``INCLUDE_DIRECTORIES``, ``LINK_DIRECTORIES``,
+ ``LINK_LIBRARIES``, and ``LINK_OPTIONS`` are used. Compiler options
+ can be passed in like `CMAKE_FLAGS -DCOMPILE_DEFINITIONS=-Werror`.
``COMPILE_DEFINITIONS <defs>...``
Specify ``-Ddefinition`` arguments to pass to :command:`add_definitions`