mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 14:40:26 -06:00
Merge topic 'if-sanity'
858d5a0bFix if() checks of CMAKE_SYSTEM_NAME on Cygwine177e7afFPHSA: Avoid if() dereferencing of quoted variable425acc52cmcurl: Use if(DEFINED) to simplify conditionscede5cbdlibarchive: Avoid depending on if() to dereference a quoted variable2d97178bFindGTK2: Avoid depending on if() to dereference a quoted variable0b12815dModules/Test*.cmake: Use if(DEFINED) to simplify conditions188a1f23If: Introduce policy CMP0054 - don't dereference quoted variables in if()b900c1ccIf: Extract cmConditionEvaluator from if() implementation
This commit is contained in:
@@ -199,3 +199,9 @@ above-documented signature accepts ``<variable|string>``:
|
||||
* The left and right hand arguments to ``AND`` and ``OR`` are independently
|
||||
tested to see if they are boolean constants, if so they are used as
|
||||
such, otherwise they are assumed to be variables and are dereferenced.
|
||||
|
||||
To prevent ambiguity, potential variable or keyword names can be
|
||||
specified in a :ref:`Quoted Argument` or a :ref:`Bracket Argument`.
|
||||
A quoted or bracketed variable or keyword will be interpreted as a
|
||||
string and not dereferenced or interpreted.
|
||||
See policy :policy:`CMP0054`.
|
||||
|
||||
Reference in New Issue
Block a user