Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Help/command/DEVICE_LINK_OPTIONS.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@

When a device link step is involved, which is controlled by
:prop_tgt:`CUDA_SEPARABLE_COMPILATION` and
:prop_tgt:`CUDA_RESOLVE_DEVICE_SYMBOLS` properties, the raw options will be
delivered to the host and device link steps (wrapped in ``-Xcompiler`` or
equivalent for device link). Options wrapped with ``$<DEVICE_LINK:...>``
:prop_tgt:`CUDA_RESOLVE_DEVICE_SYMBOLS` properties and policy :policy:`CMP0105`,
the raw options will be delivered to the host and device link steps (wrapped in
``-Xcompiler`` or equivalent for device link). Options wrapped with
``$<DEVICE_LINK:...>``
:manual:`generator expression <cmake-generator-expressions(7)>` will be used
only for the device link step. Options wrapped with ``$<HOST_LINK:...>``
:manual:`generator expression <cmake-generator-expressions(7)>` will be used
Expand Down
5 changes: 3 additions & 2 deletions Help/manual/cmake-generator-expressions.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,9 @@ Variable Queries
``$<DEVICE_LINK:list>``
Returns the list if it is the device link step, an empty list otherwise.
The device link step is controlled by :prop_tgt:`CUDA_SEPARABLE_COMPILATION`
and :prop_tgt:`CUDA_RESOLVE_DEVICE_SYMBOLS` properties. This expression can
only be used to specify link options.
and :prop_tgt:`CUDA_RESOLVE_DEVICE_SYMBOLS` properties and
policy :policy:`CMP0105`. This expression can only be used to specify link
options.

``$<HOST_LINK:list>``
Returns the list if it is the normal link step, an empty list otherwise.
Expand Down
2 changes: 1 addition & 1 deletion Help/manual/cmake-properties.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ Properties on Targets
/prop_tgt/ARCHIVE_OUTPUT_DIRECTORY
/prop_tgt/ARCHIVE_OUTPUT_NAME_CONFIG
/prop_tgt/ARCHIVE_OUTPUT_NAME
/prop_tgt/PCH_WARN_INVALID
/prop_tgt/AUTOGEN_BUILD_DIR
/prop_tgt/AUTOGEN_ORIGIN_DEPENDS
/prop_tgt/AUTOGEN_PARALLEL
Expand Down Expand Up @@ -312,6 +311,7 @@ Properties on Targets
/prop_tgt/OSX_ARCHITECTURES
/prop_tgt/OUTPUT_NAME_CONFIG
/prop_tgt/OUTPUT_NAME
/prop_tgt/PCH_WARN_INVALID
/prop_tgt/PDB_NAME_CONFIG
/prop_tgt/PDB_NAME
/prop_tgt/PDB_OUTPUT_DIRECTORY_CONFIG
Expand Down
2 changes: 1 addition & 1 deletion Help/prop_sf/VS_SETTINGS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ For example:
will set ``Key`` to ``Value`` and ``Key2`` to ``Value2`` on the
``file.hlsl`` item as metadata.

Generator expressions are supported.
:manual:`Generator expressions <cmake-generator-expressions(7)>` are supported.
23 changes: 12 additions & 11 deletions Help/prop_tgt/FRAMEWORK_MULTI_CONFIG_POSTFIX_CONFIG.rst
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
FRAMEWORK_MULTI_CONFIG_POSTFIX_<CONFIG>
---------------------------------------

Postfix to append to the framework file name for configuration <CONFIG>,
Postfix to append to the framework file name for configuration ``<CONFIG>``,
when using a multi-config generator (like Xcode and Ninja Multi-Config).

When building with configuration <CONFIG> the value of this property
When building with configuration ``<CONFIG>`` the value of this property
is appended to the framework file name built on disk.

For example given a framework called ``my_fw``, a value of ``_debug``
for the :prop_tgt:`FRAMEWORK_MULTI_CONFIG_POSTFIX_<CONFIG>` property, and
``Debug;Release`` in `CMAKE_CONFIGURATION_TYPES`, the following relevant
files would be created for the ``Debug`` and ``Release`` configurations:
For example, given a framework called ``my_fw``, a value of ``_debug``
for the ``FRAMEWORK_MULTI_CONFIG_POSTFIX_<CONFIG>`` property, and
``Debug;Release`` in :variable:`CMAKE_CONFIGURATION_TYPES`, the following
relevant files would be created for the ``Debug`` and ``Release``
configurations:

- Release/my_fw.framework/my_fw
- Release/my_fw.framework/Versions/A/my_fw
- Debug/my_fw.framework/my_fw_debug
- Debug/my_fw.framework/Versions/A/my_fw_debug
- ``Release/my_fw.framework/my_fw``
- ``Release/my_fw.framework/Versions/A/my_fw``
- ``Debug/my_fw.framework/my_fw_debug``
- ``Debug/my_fw.framework/Versions/A/my_fw_debug``

For framework targets, this property is initialized by the value of the
variable :variable:`CMAKE_FRAMEWORK_MULTI_CONFIG_POSTFIX_<CONFIG>` if it
:variable:`CMAKE_FRAMEWORK_MULTI_CONFIG_POSTFIX_<CONFIG>` variable if it
is set when a target is created.

This property is ignored for non-framework targets, and when using single
Expand Down
6 changes: 4 additions & 2 deletions Help/prop_tgt/PCH_WARN_INVALID.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ PCH_WARN_INVALID
----------------

When this property is set to true, the precompile header compiler options
will contain a compiler flag wich should warn about invalid precompiled
will contain a compiler flag which should warn about invalid precompiled
headers e.g. ``-Winvalid-pch`` for GNU compiler.

The defalut value is ``ON``.
This property is initialized by the value of the
:variable:`CMAKE_PCH_WARN_INVALID` variable if it is set when a target is
created. If that variable is not set, the property defaults to ``ON``.
16 changes: 7 additions & 9 deletions Help/prop_tgt/VS_SOLUTION_DEPLOY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,22 @@ VS_SOLUTION_DEPLOY
Specify that the target should be marked for deployment when not targeting
Windows CE, Windows Phone or a Windows Store application.

If the target platform doesn't support deployment, this property won't have any effect.
If the target platform doesn't support deployment, this property won't have
any effect.

Generator expressions are supported.
:manual:`Generator expressions <cmake-generator-expressions(7)>` are supported.

Example 1
^^^^^^^^^
Examples
^^^^^^^^

This shows setting the variable for the target foo.
Always deploy target ``foo``:

.. code-block:: cmake

add_executable(foo SHARED foo.cpp)
set_property(TARGET foo PROPERTY VS_SOLUTION_DEPLOY ON)

Example 2
^^^^^^^^^

This shows setting the variable for the Release configuration only.
Deploy target ``foo`` for all configurations except ``Release``:

.. code-block:: cmake

Expand Down
2 changes: 1 addition & 1 deletion Help/prop_tgt/VS_SOURCE_SETTINGS_tool.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ For example:
will set ``Key`` to ``Value`` and ``Key2`` to ``Value2`` for all
non-built files that use ``FXCompile``.

Generator expressions are supported.
:manual:`Generator expressions <cmake-generator-expressions(7)>` are supported.
7 changes: 5 additions & 2 deletions Help/release/3.18.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ Properties
* The :prop_sf:`OBJECT_OUTPUTS` source file property now supports
:manual:`generator expressions <cmake-generator-expressions(7)>`.

* The :prop_tgt:`PCH_WARN_INVALID` target property was added to allow the
removal of the precompiled header invalid warning.

* The :prop_tgt:`UNITY_BUILD_MODE` target property was added to tell
generators which algorithm to use for grouping included source
files.
Expand Down Expand Up @@ -243,9 +246,9 @@ CPack
installer is DPI-aware.

* The :cpack_gen:`CPack RPM Generator` gained
:variable:`CPACK_RPM_PRE_TRANS_SCRIPT_FILE`
:variable:`CPACK_RPM_PRE_TRANS_SCRIPT_FILE` and
:variable:`CPACK_RPM_POST_TRANS_SCRIPT_FILE`
variables to specify pre- and post-trans scripts.
variables to specify pre- and post-transaction scripts.

Other
-----
Expand Down
8 changes: 4 additions & 4 deletions Modules/GoogleTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ same as the Google Test name (i.e. ``suite.testcase``); see also
[DISCOVERY_MODE <POST_BUILD|PRE_TEST>]
)

``gtest_discover_tests`` sets up a post-build command on the test executable
``gtest_discover_tests()`` sets up a post-build command on the test executable
that generates the list of tests by parsing the output from running the test
with the ``--gtest_list_tests`` argument. Compared to the source parsing
approach of :command:`gtest_add_tests`, this ensures that the full list of
Expand Down Expand Up @@ -212,7 +212,7 @@ same as the Google Test name (i.e. ``suite.testcase``); see also

``PROPERTIES name1 value1...``
Specifies additional properties to be set on all tests discovered by this
invocation of ``gtest_discover_tests``.
invocation of ``gtest_discover_tests()``.

``TEST_LIST var``
Make the list of tests available in the variable ``var``, rather than the
Expand Down Expand Up @@ -246,7 +246,7 @@ same as the Google Test name (i.e. ``suite.testcase``); see also
XML result output when using parallel test execution.

``DISCOVERY_MODE``
Provides greater control over when ``gtest_discover_tests``performs test
Provides greater control over when ``gtest_discover_tests()`` performs test
discovery. By default, ``POST_BUILD`` sets up a post-build command
to perform test discovery at build time. In certain scenarios, like
cross-compiling, this ``POST_BUILD`` behavior is not desirable.
Expand All @@ -257,7 +257,7 @@ same as the Google Test name (i.e. ``suite.testcase``); see also

``DISCOVERY_MODE`` defaults to the value of the
``CMAKE_GTEST_DISCOVER_TESTS_DISCOVERY_MODE`` variable if it is not
passed when calling ``gtest_discover_tests``. This provides a mechanism
passed when calling ``gtest_discover_tests()``. This provides a mechanism
for globally selecting a preferred test discovery behavior without having
to modify each call site.

Expand Down