summaryrefslogtreecommitdiffstats
path: root/Source/cmAddLibraryCommand.cxx
diff options
context:
space:
mode:
authorJim Miller <millerjv@crd.ge.com>2001-04-16 14:15:05 (GMT)
committerJim Miller <millerjv@crd.ge.com>2001-04-16 14:15:05 (GMT)
commite963dcaa8f37fac0fc450dfa1707266469f57998 (patch)
treefb2c2f60d9960993a6a8b75661622f17f76d3dca /Source/cmAddLibraryCommand.cxx
parent7b362bdb1f45699f5fc527f314e6433a8416eb52 (diff)
downloadCMake-e963dcaa8f37fac0fc450dfa1707266469f57998.zip
CMake-e963dcaa8f37fac0fc450dfa1707266469f57998.tar.gz
CMake-e963dcaa8f37fac0fc450dfa1707266469f57998.tar.bz2
FIX: allow ADD_LIBRARY with no source list
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r--Source/cmAddLibraryCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx
index 736d567..bc4f1b1 100644
--- a/Source/cmAddLibraryCommand.cxx
+++ b/Source/cmAddLibraryCommand.cxx
@@ -19,7 +19,7 @@
// cmLibraryCommand
bool cmAddLibraryCommand::Invoke(std::vector<std::string>& args)
{
- if(args.size() < 2 )
+ if(args.size() < 1 )
{
this->SetError("called with incorrect number of arguments");
return false;