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/CMakeBuildTargets.cxx | |
parent | 252b0d89572b5cadb3ba3b9f5db6dfa35f60beba (diff) | |
download | CMake-fce56c57c497ede3a7afcbc7965846cc8bad9db2.zip CMake-fce56c57c497ede3a7afcbc7965846cc8bad9db2.tar.gz CMake-fce56c57c497ede3a7afcbc7965846cc8bad9db2.tar.bz2 |
some cleanup and fixes
Diffstat (limited to 'Source/CMakeBuildTargets.cxx')
-rw-r--r-- | Source/CMakeBuildTargets.cxx | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/Source/CMakeBuildTargets.cxx b/Source/CMakeBuildTargets.cxx index e4c9e92..876708e 100644 --- a/Source/CMakeBuildTargets.cxx +++ b/Source/CMakeBuildTargets.cxx @@ -36,18 +36,17 @@ int main(int ac, char** av) for(int i =2; i < ac; i++) { std::string arg = av[i]; - // Set the current source directory with a -S dir options + // Set the start source directory with a -S dir options if(arg.find("-S",0) == 0) { std::string path = arg.substr(2); - mf.SetCurrentDirectory(path.c_str()); + mf.SetStartDirectory(path.c_str()); } - // Set the output or binary directory with a -B dir option - if(arg.find("-B",0) == 0) + // Set the start output directory with a -O dir options + if(arg.find("-O",0) == 0) { std::string path = arg.substr(2); - mf.SetOutputHomeDirectory(path.c_str()); - mf.SetOutputDirectory(path.c_str()); + mf.SetStartOutputDirectory(path.c_str()); } // Set the source home directory with a -H dir option if(arg.find("-H",0) == 0) @@ -55,12 +54,19 @@ int main(int ac, char** av) std::string path = arg.substr(2); mf.SetHomeDirectory(path.c_str()); } + // Set the output or binary directory with a -B dir option + if(arg.find("-B",0) == 0) + { + std::string path = arg.substr(2); + mf.SetHomeOutputDirectory(path.c_str()); + } } } mf.SetMakefileGenerator(new cmUnixMakefileGenerator); // Read and parse the input makefile - if(!mf.ReadMakefile(av[1])) + mf.MakeStartDirectoriesCurrent(); + if(!mf.ReadListFile(av[1])) { std::cerr << "Usage: " << av[0] << " Makefile.in -Ipath ..." << std::endl; return -1; |