summaryrefslogtreecommitdiffstats
path: root/Source/cmProjectRule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmProjectRule.cxx')
-rw-r--r--Source/cmProjectRule.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmProjectRule.cxx b/Source/cmProjectRule.cxx
new file mode 100644
index 0000000..77354e5
--- /dev/null
+++ b/Source/cmProjectRule.cxx
@@ -0,0 +1,14 @@
+#include "cmProjectRule.h"
+
+// cmProjectRule
+bool cmProjectRule::Invoke(std::vector<std::string>& args)
+{
+ if(args.size() < 1 || args.size() > 1)
+ {
+ this->SetError("PROJECT called with incorrect number of arguments");
+ return false;
+ }
+ m_Makefile->SetProjectName(args[0].c_str());
+ return true;
+}
+