summaryrefslogtreecommitdiffstats
path: root/Source/cmUnixLibrariesRule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmUnixLibrariesRule.cxx')
-rw-r--r--Source/cmUnixLibrariesRule.cxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/Source/cmUnixLibrariesRule.cxx b/Source/cmUnixLibrariesRule.cxx
new file mode 100644
index 0000000..84e8ecc
--- /dev/null
+++ b/Source/cmUnixLibrariesRule.cxx
@@ -0,0 +1,25 @@
+#include "cmUnixLibrariesRule.h"
+
+cmUnixLibrariesRule::cmUnixLibrariesRule()
+{
+#if defined(_WIN32) && !defined(__CYGWIN__)
+ this->SetEnableOff();
+#endif
+}
+
+// cmUnixLibrariesRule
+bool cmUnixLibrariesRule::Invoke(std::vector<std::string>& args)
+{
+ if(args.size() < 1 )
+ {
+ this->SetError("called with incorrect number of arguments");
+ return false;
+ }
+ for(std::vector<std::string>::iterator i = args.begin();
+ i != args.end(); ++i)
+ {
+ m_Makefile->AddLinkLibrary((*i).c_str());
+ }
+ return true;
+}
+