diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 07abc8ea8..845ab9be4 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& args) +void cmake::SetArgs(const std::vector& args, bool directoriesSetBefore) { - bool directoriesSet = false; + bool directoriesSet = directoriesSetBefore; for(unsigned int i=1; i < args.size(); ++i) { std::string arg = args[i]; diff --git a/Source/cmake.h b/Source/cmake.h index 72effd38d..36c0f4a9f 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -212,7 +212,7 @@ class cmake bool CommandExists(const char* name) const; ///! Parse command line arguments - void SetArgs(const std::vector&); + void SetArgs(const std::vector&, bool directoriesSetBefore = false); ///! Is this cmake running as a result of a TRY_COMPILE command bool GetIsInTryCompile() { return this->InTryCompile; }