mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 11:49:55 -06:00
docs: add some 'see also' helper texts
in cmake-generator-expressions
This commit is contained in:
@@ -68,10 +68,13 @@ Available logical expressions are:
|
||||
target.
|
||||
``$<PLATFORM_ID:comp>``
|
||||
``1`` if the CMake-id of the platform matches ``comp``, otherwise ``0``.
|
||||
See also the :variable:`CMAKE_SYSTEM_NAME` variable.
|
||||
``$<C_COMPILER_ID:comp>``
|
||||
``1`` if the CMake-id of the C compiler matches ``comp``, otherwise ``0``.
|
||||
See also the :variable:`CMAKE_<LANG>_COMPILER_ID` variable.
|
||||
``$<CXX_COMPILER_ID:comp>``
|
||||
``1`` if the CMake-id of the CXX compiler matches ``comp``, otherwise ``0``.
|
||||
See also the :variable:`CMAKE_<LANG>_COMPILER_ID` variable.
|
||||
``$<VERSION_LESS:v1,v2>``
|
||||
``1`` if ``v1`` is a version less than ``v2``, else ``0``.
|
||||
``$<VERSION_GREATER:v1,v2>``
|
||||
@@ -84,8 +87,10 @@ Available logical expressions are:
|
||||
``1`` if ``v1`` is a version greater than or equal to ``v2``, else ``0``.
|
||||
``$<C_COMPILER_VERSION:ver>``
|
||||
``1`` if the version of the C compiler matches ``ver``, otherwise ``0``.
|
||||
See also the :variable:`CMAKE_<LANG>_COMPILER_VERSION` variable.
|
||||
``$<CXX_COMPILER_VERSION:ver>``
|
||||
``1`` if the version of the CXX compiler matches ``ver``, otherwise ``0``.
|
||||
See also the :variable:`CMAKE_<LANG>_COMPILER_VERSION` variable.
|
||||
``$<TARGET_POLICY:pol>``
|
||||
``1`` if the policy ``pol`` was NEW when the 'head' target was created,
|
||||
else ``0``. If the policy was not set, the warning message for the policy
|
||||
|
||||
Reference in New Issue
Block a user