diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-06-10 14:08:41 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-06-10 14:08:41 (GMT) |
commit | f0b8cecf9d17ed596f26b78f9298c28c6b27b5df (patch) | |
tree | 9e408f13369797b6bcc989a730bc074a532064d1 /Source/cmAddLibraryCommand.cxx | |
parent | ab313ca5476f7ab56da7b03f1355c3d0d1b81866 (diff) | |
download | CMake-f0b8cecf9d17ed596f26b78f9298c28c6b27b5df.zip CMake-f0b8cecf9d17ed596f26b78f9298c28c6b27b5df.tar.gz CMake-f0b8cecf9d17ed596f26b78f9298c28c6b27b5df.tar.bz2 |
ENH: allow libs with no sources but complain
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r-- | Source/cmAddLibraryCommand.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx index 9af872c..f363b93 100644 --- a/Source/cmAddLibraryCommand.cxx +++ b/Source/cmAddLibraryCommand.cxx @@ -60,8 +60,11 @@ bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args) if (s == args.end()) { - this->SetError("called with incorrect number of arguments, no sources provided"); - return false; + std::string msg = "You have called ADD_LIBRARY for library "; + msg += args[0]; + msg += " without any source files. This typically indicates a problem "; + msg += "with your CMakeLists.txt file"; + cmSystemTools::Message(msg.c_str() ,"Warning"); } std::vector<std::string> srclists; |