diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-01-29 17:43:28 +0100 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-01-29 18:44:54 +0100 |
commit | f6b16d4b0642d26111cddff714b464e22b715482 (patch) | |
tree | 2f9e9edc118a85091b9d7631f43830d1707029e6 /Source/cmTargetIncludeDirectoriesCommand.cxx | |
parent | b3a7e19ee479fda18b1dfe237fc4b78467c05fd7 (diff) | |
download | cmake-f6b16d4b0642d26111cddff714b464e22b715482.tar.gz |
Don't allow targets args in the new target commands.
Diffstat (limited to 'Source/cmTargetIncludeDirectoriesCommand.cxx')
-rw-r--r-- | Source/cmTargetIncludeDirectoriesCommand.cxx | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Source/cmTargetIncludeDirectoriesCommand.cxx b/Source/cmTargetIncludeDirectoriesCommand.cxx index aeba4686a1..51a2b6bdc3 100644 --- a/Source/cmTargetIncludeDirectoriesCommand.cxx +++ b/Source/cmTargetIncludeDirectoriesCommand.cxx @@ -41,26 +41,6 @@ void cmTargetIncludeDirectoriesCommand } //---------------------------------------------------------------------------- -bool cmTargetIncludeDirectoriesCommand -::HandleNonTargetArg(std::string &content, - const std::string &sep, - const std::string &entry, - const std::string &tgt) -{ - if (!cmSystemTools::FileIsFullPath(entry.c_str())) - { - cmOStringStream e; - e << "Cannot specify relative include directory \"" << entry << "\" for " - "target \"" << tgt << "\". Only absolute paths are permitted"; - this->Makefile->IssueMessage(cmake::FATAL_ERROR, e.str()); - return false; - } - - content += sep + entry; - return true; -} - -//---------------------------------------------------------------------------- void cmTargetIncludeDirectoriesCommand ::HandleDirectContent(cmTarget *tgt, const std::string &content, bool prepend) |