Create CMake Policy CMP0015 to fix set(CACHE)
commitdae9ec75483e8cda98aa6d6ce207e351eef0306f
authorking <king>
Thu, 10 Sep 2009 20:59:44 +0000 (10 20:59 +0000)
committerking <king>
Thu, 10 Sep 2009 20:59:44 +0000 (10 20:59 +0000)
tree7ced591847a5332437a2c17a4279d9b50a8c58e8
parent9d4970688d5399ef48ee310417116414d0e232b3
Create CMake Policy CMP0015 to fix set(CACHE)

The set(CACHE) and option() commands should always expose the cache
value.  Previously we failed to expose the value when it was already set
if a local variable definition hid it.  When set to NEW, this policy
tells the commands to always remove the local variable definition to
expose the cache value.  See issue #9008.
Source/cmMakefile.cxx
Source/cmMakefile.h
Source/cmOptionCommand.cxx
Source/cmPolicies.cxx
Source/cmPolicies.h
Source/cmSetCommand.cxx
Source/cmSetCommand.h