diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-07-11 10:51:36 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-12 10:09:54 +0200 |
commit | d4f032b5460afce396dcc5ce3b0af9eb0619812b (patch) | |
tree | 7d9a2e205b6081a28cc74748e1dd74a0f84ec962 /Tests/Complex | |
parent | b37fb49646909b489a062088ed5aa1e88d896f83 (diff) | |
download | cmake-d4f032b5460afce396dcc5ce3b0af9eb0619812b.tar.gz |
cmState: Restore renamed commands on cleanup.
Commit v3.3.0-rc1~196^2~7 (cmake: Simplify command clean up
loop., 2015-04-12) introduced a bug that built-in commands which
were renamed no longer had their original name restored when
cleanup is performed between configure runs. Check for that
and restore the commands with their original name.
Extend the complex test for this. That test is run by ctest with
the --build-two-config command line option.
Diffstat (limited to 'Tests/Complex')
-rw-r--r-- | Tests/Complex/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/Complex/CMakeLists.txt b/Tests/Complex/CMakeLists.txt index 5e5eead809..9251ff37dd 100644 --- a/Tests/Complex/CMakeLists.txt +++ b/Tests/Complex/CMakeLists.txt @@ -4,6 +4,13 @@ cmake_minimum_required(VERSION 2.4) project (Complex) +# Test that renaming a built-in works when configured multiple times. +message("message") +function(message) + _message(${ARGN}) +endfunction() +message("message") + # Try setting a new policy. The IF test is for coverage. if(POLICY CMP0003) cmake_policy(SET CMP0003 NEW) |