summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2022-04-09 02:38:01 (GMT)
committerBrad King <brad.king@kitware.com>2022-04-11 13:06:37 (GMT)
commitab5455aa79e6f259ebad3b630869662fd6c886d1 (patch)
treeec26a363956a23db7ed5746b59e51757748b4775
parent4515d82088c5dcd8e08e117532c500992262b84b (diff)
downloadCMake-ab5455aa79e6f259ebad3b630869662fd6c886d1.zip
CMake-ab5455aa79e6f259ebad3b630869662fd6c886d1.tar.gz
CMake-ab5455aa79e6f259ebad3b630869662fd6c886d1.tar.bz2
Help: Correct/add missing details for CheckPIESupported
-rw-r--r--Modules/CheckPIESupported.cmake9
1 files changed, 6 insertions, 3 deletions
diff --git a/Modules/CheckPIESupported.cmake b/Modules/CheckPIESupported.cmake
index 6424472..173fd61 100644
--- a/Modules/CheckPIESupported.cmake
+++ b/Modules/CheckPIESupported.cmake
@@ -22,10 +22,13 @@ property for executables will be honored at link time.
Options are:
``OUTPUT_VARIABLE <output>``
- Set ``<output>`` variable with details about any error.
+ Set ``<output>`` variable with details about any error. If the check is
+ bypassed because it uses cached results from a previous call, the output
+ will be empty even if errors were present in the previous call.
``LANGUAGES <lang>...``
Check the linkers used for each of the specified languages.
+ If this option is not provided, the command checks all enabled languages.
``C``, ``CXX``, ``Fortran`` are supported.
@@ -43,9 +46,9 @@ Variables
For each language checked, two boolean cache variables are defined.
``CMAKE_<lang>_LINK_PIE_SUPPORTED``
- Set to ``YES`` if ``PIE`` is supported by the linker and ``NO`` otherwise.
+ Set to true if ``PIE`` is supported by the linker and false otherwise.
``CMAKE_<lang>_LINK_NO_PIE_SUPPORTED``
- Set to ``YES`` if ``NO_PIE`` is supported by the linker and ``NO`` otherwise.
+ Set to true if ``NO_PIE`` is supported by the linker and false otherwise.
Examples
^^^^^^^^