mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Update documentation for aforementioned variables, as their use is deprecated under the new diagnostic system. Introduce a policy which reintroduces their use to control specific deprecation diagnostics if the policy is not NEW. Note that this means there is NO synchronization between the variables and the new diagnostic state.
5 lines
160 B
CMake
5 lines
160 B
CMake
cmake_diagnostic(GET CMD_DEPRECATED action)
|
|
if(NOT "${action}" STREQUAL "IGNORE")
|
|
message(SEND_ERROR "CMD_DEPRECATED is ${action}; should be IGNORE")
|
|
endif()
|