summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2013-02-11 22:20:00 (GMT)
committerBrad King <brad.king@kitware.com>2013-02-19 19:44:57 (GMT)
commit674bd6e7788f9e6ff35c0082c9c85e9aa83b642d (patch)
tree59d9ba014199e9b7252cee9f170c60768ed5bd25 /Source/cmake.cxx
parent4760eade425e8e294ac9400785ffce70912d5b43 (diff)
parent3e7bba3fb2d431b512181e99c6333e9dfdc8a9fd (diff)
downloadCMake-674bd6e7788f9e6ff35c0082c9c85e9aa83b642d.zip
CMake-674bd6e7788f9e6ff35c0082c9c85e9aa83b642d.tar.gz
CMake-674bd6e7788f9e6ff35c0082c9c85e9aa83b642d.tar.bz2
Merge branch 'master' into sublime-text-2-generator
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 42b7f79..fa73658 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -3302,6 +3302,12 @@ int cmake::ExecuteLinkScript(std::vector<std::string>& args)
int result = 0;
while(result == 0 && cmSystemTools::GetLineFromStream(fin, command))
{
+ // Skip empty command lines.
+ if(command.find_first_not_of(" \t") == command.npos)
+ {
+ continue;
+ }
+
// Setup this command line.
const char* cmd[2] = {command.c_str(), 0};
cmsysProcess_SetCommand(cp, cmd);
@@ -3555,6 +3561,13 @@ void cmake::DefineProperty(const char *name, cmProperty::ScopeType scope,
chained);
}
+bool cmake::GetIsPropertyDefined(const char *name,
+ cmProperty::ScopeType scope)
+{
+ return this->PropertyDefinitions[scope].find(name) !=
+ this->PropertyDefinitions[scope].end();
+}
+
cmPropertyDefinition *cmake
::GetPropertyDefinition(const char *name,
cmProperty::ScopeType scope)
@@ -4384,6 +4397,10 @@ void cmake::IssueMessage(cmake::MessageType t, std::string const& text,
isError = true;
msg << "CMake Internal Error (please report a bug)";
}
+ else if(t == cmake::LOG)
+ {
+ msg << "CMake Debug Log";
+ }
else
{
msg << "CMake Warning";