diff options
author | Brad King <brad.king@kitware.com> | 2012-11-01 12:32:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-11-07 14:24:05 (GMT) |
commit | d2d43986e7f5013465473a71c393fc3897cecbac (patch) | |
tree | d758f2e9f01966a5f9229661be54f97db21b936f /Source/cmLoadCommandCommand.cxx | |
parent | 21f5fc12ee4ca043838264962fc7608a97b8f35f (diff) | |
download | CMake-d2d43986e7f5013465473a71c393fc3897cecbac.zip CMake-d2d43986e7f5013465473a71c393fc3897cecbac.tar.gz CMake-d2d43986e7f5013465473a71c393fc3897cecbac.tar.bz2 |
load_command: Deprecate and document pending removal
This command works only when building projects using the same
architecture as the running CMake binary. Since it was introduced
CMake has learned macro() and function() to add commands, and the
execute_process() command to launch advanced external computations.
Add a RunCMake.load_command test to verify the warning appears.
Diffstat (limited to 'Source/cmLoadCommandCommand.cxx')
-rw-r--r-- | Source/cmLoadCommandCommand.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx index b2acf06..181b922 100644 --- a/Source/cmLoadCommandCommand.cxx +++ b/Source/cmLoadCommandCommand.cxx @@ -224,6 +224,10 @@ cmLoadedCommand::~cmLoadedCommand() bool cmLoadCommandCommand ::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &) { + this->Makefile->IssueMessage( + cmake::AUTHOR_WARNING, + "The \"load_command\" command will be removed in CMake 3.0. " + "See command documentation for details."); if(args.size() < 1 ) { return true; |