blob: c22e52b1fa7164b8dd69ba008847988e1807062d [file] [edit]
PATH:IS_PREFIX
--------------
.. versionadded:: 3.24
.. |genex-family| replace:: :ref:`genex-family-genex-path-queries`
.. include:: ../manual/include/GENEX_FAMILY.rst
.. code-block:: cmake
$<PATH:IS_PREFIX[,NORMALIZE],path,input>
Returns ``1`` if ``path`` is the prefix of ``input``, ``0`` otherwise.
When the ``NORMALIZE`` option is specified, ``path`` and ``input`` are
:ref:`normalized <Normalization>` before the check.
An empty ``path`` is not a prefix of any ``input``.
.. versionchanged:: 4.5
An empty ``path`` was previously a prefix of every ``input``. See
policy :policy:`CMP0223`.