summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-10-05 17:44:28 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2010-10-05 17:44:28 (GMT)
commit5aa535bdcb9d1148690e55b601e1c8f8763f842c (patch)
treec4ea565b4d89c51c69749005bd5c241e2d6562b1 /Source/cmake.cxx
parent367e5c37bbaba8f2169ed5a56e553e9327b8951a (diff)
downloadCMake-5aa535bdcb9d1148690e55b601e1c8f8763f842c.zip
CMake-5aa535bdcb9d1148690e55b601e1c8f8763f842c.tar.gz
CMake-5aa535bdcb9d1148690e55b601e1c8f8763f842c.tar.bz2
Add argument to arg parsing to not set directories
Argument parsing sets the source/build directories, but they may have been (meaningfully) set before hand. Let's not overwrite them.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 07abc8e..845ab9b 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -524,9 +524,9 @@ void cmake::ReadListFile(const char *path)
}
// Parse the args
-void cmake::SetArgs(const std::vector<std::string>& args)
+void cmake::SetArgs(const std::vector<std::string>& args, bool directoriesSetBefore)
{
- bool directoriesSet = false;
+ bool directoriesSet = directoriesSetBefore;
for(unsigned int i=1; i < args.size(); ++i)
{
std::string arg = args[i];