mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
Merge topic 'doc-3.18-fixups'
947cfc732dHelp: Explicitly say transaction, don't abbreviate to trans90c73479bcHelp: Correct and condense examples for VS_SOLUTION_DEPLOY0420de10b5Help: Add missing cross-referencing for generator expressions013f7a2647Help: Formatting, crossref for FRAMEWORK_MULTI_CONFIG_POSTFIX_<CONFIG>a12d53acf3Help: Add missing PCH_WARN_INVALID docs and related cleanups95a16f7805Help: Fix formatting error and consistency for gtest_discover_tests() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4915
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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``.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
@@ -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
|
||||
-----
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user