diff options
author | Brad King <brad.king@kitware.com> | 2009-10-08 18:56:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-10-08 18:56:15 (GMT) |
commit | 9a77f65da7d3275760a60d0a6180a9c240ba30e5 (patch) | |
tree | 7326f55451af5e372483a512caaa44906a67570a /Source/cmPolicies.h | |
parent | 24bf97440fc8730860620c65d9dfd487ca68c69d (diff) | |
download | CMake-9a77f65da7d3275760a60d0a6180a9c240ba30e5.zip CMake-9a77f65da7d3275760a60d0a6180a9c240ba30e5.tar.gz CMake-9a77f65da7d3275760a60d0a6180a9c240ba30e5.tar.bz2 |
Remove CMake Policy CMP0015 until it is revised
We revert commit "Create CMake Policy CMP0015 to fix set(CACHE)" because
the NEW behavior of the policy breaks a valid use case:
# CMakeLists.txt
option(BUILD_SHARED_LIBS "..." ON)
add_library(mylib ...)
set(BUILD_SHARED_LIBS OFF) # we want only mylib to be shared
add_subdirectory(ThirdParty)
# ThirdParty/CMakeLists.txt
option(BUILD_SHARED_LIBS "..." ON)
# uh, oh, with NEW behavior this dir uses shared libs!!!
We'll re-introduce the policy later with a different change in behavior
to resolve the motivating case, which was more subtle but less common.
See issue #9008.
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r-- | Source/cmPolicies.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h index be3b44a..cf808bd 100644 --- a/Source/cmPolicies.h +++ b/Source/cmPolicies.h @@ -50,7 +50,6 @@ public: CMP0012, // Strong handling of boolean constants CMP0013, // Duplicate binary directories not allowed CMP0014, // Input directories must have CMakeLists.txt - CMP0015, // set(CACHE) and option() make CACHE value visible // Always the last entry. Useful mostly to avoid adding a comma // the last policy when adding a new one. |