summaryrefslogtreecommitdiffstats
path: root/Source/cmAddLibraryCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-03-29 16:04:19 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-03-29 16:04:19 (GMT)
commitdbdb0adce84b7a1a37fb058f65c8734ff29429c3 (patch)
tree427d4db1f0985dafdbdf32c7e79721a9339cfd68 /Source/cmAddLibraryCommand.cxx
parent7359c6bd16b04c39c0925314862d5342b67d89c8 (diff)
downloadCMake-dbdb0adce84b7a1a37fb058f65c8734ff29429c3.zip
CMake-dbdb0adce84b7a1a37fb058f65c8734ff29429c3.tar.gz
CMake-dbdb0adce84b7a1a37fb058f65c8734ff29429c3.tar.bz2
ENH: add ability to use ; separated lists in SET and expand them for addexecutable and addlibrary
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r--Source/cmAddLibraryCommand.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx
index 445d405..a066585 100644
--- a/Source/cmAddLibraryCommand.cxx
+++ b/Source/cmAddLibraryCommand.cxx
@@ -18,14 +18,15 @@
#include "cmCacheManager.h"
// cmLibraryCommand
-bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args)
+bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& argsIn)
{
- if(args.size() < 1 )
+ if(argsIn.size() < 1 )
{
this->SetError("called with incorrect number of arguments");
return false;
}
-
+ std::vector<std::string> args;
+ cmSystemTools::ExpandListArguments(argsIn, args);
// Library type defaults to value of BUILD_SHARED_LIBS, if it exists,
// otherwise it defaults to static library.
int shared = !cmSystemTools::IsOff(m_Makefile->GetDefinition("BUILD_SHARED_LIBS"));