Browse Source

Help: Mention CMP0126 in CMAKE_OSX_* variable documentation

Signed-off-by: Da Quexian <[email protected]>
Da Quexian 3 years ago
parent
commit
3fac3d365d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Help/variable/CMAKE_OSX_VARIABLE.txt

+ 2 - 1
Help/variable/CMAKE_OSX_VARIABLE.txt

@@ -3,7 +3,8 @@ The value of this variable should be set prior to the first
 because it may influence configuration of the toolchain and flags.
 It is intended to be set locally by the user creating a build tree.
 This variable should be set as a ``CACHE`` entry (or else CMake may
-remove it while initializing a cache entry of the same name).
+remove it while initializing a cache entry of the same name) unless
+policy :policy:`CMP0126` is set to ``NEW``.
 
 Despite the ``OSX`` part in the variable name(s) they apply also to
 other SDKs than macOS like iOS, tvOS, or watchOS.