diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-02-15 18:30:13 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-02-15 18:30:13 (GMT) |
commit | fce56c57c497ede3a7afcbc7965846cc8bad9db2 (patch) | |
tree | 0fb37474ade8ff1ec1ed40e30e3e02074baa5b42 /Source/CMakeSetupCMD.cxx | |
parent | 252b0d89572b5cadb3ba3b9f5db6dfa35f60beba (diff) | |
download | CMake-fce56c57c497ede3a7afcbc7965846cc8bad9db2.zip CMake-fce56c57c497ede3a7afcbc7965846cc8bad9db2.tar.gz CMake-fce56c57c497ede3a7afcbc7965846cc8bad9db2.tar.bz2 |
some cleanup and fixes
Diffstat (limited to 'Source/CMakeSetupCMD.cxx')
-rw-r--r-- | Source/CMakeSetupCMD.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/CMakeSetupCMD.cxx b/Source/CMakeSetupCMD.cxx index 81db439..7250629 100644 --- a/Source/CMakeSetupCMD.cxx +++ b/Source/CMakeSetupCMD.cxx @@ -34,20 +34,20 @@ void SetArgs(cmMakefile& builder, int ac, char** av) std::string path = arg.substr(2); builder.SetHomeDirectory(path.c_str()); } - if(arg.find("-D",0) != std::string::npos) + if(arg.find("-S",0) != std::string::npos) { std::string path = arg.substr(2); - builder.SetCurrentDirectory(path.c_str()); + builder.SetStartDirectory(path.c_str()); } if(arg.find("-O",0) != std::string::npos) { std::string path = arg.substr(2); - builder.SetOutputDirectory(path.c_str()); + builder.SetStartOutputDirectory(path.c_str()); } if(arg.find("-B",0) != std::string::npos) { std::string path = arg.substr(2); - builder.SetOutputHomeDirectory(path.c_str()); + builder.SetHomeOutputDirectory(path.c_str()); std::cout << "set output home to " << path.c_str() << std::endl; } } @@ -76,7 +76,8 @@ int main(int ac, char** av) pg->BuildDSWOn(); } builder.SetMakefileGenerator(pg); - builder.ReadMakefile(av[1]); + builder.MakeStartDirectoriesCurrent(); + builder.ReadListFile(av[1]); builder.GenerateMakefile(); return 0; } |