summaryrefslogtreecommitdiffstats
path: root/Source/CMakeSetupCMD.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2000-09-12 09:30:35 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2000-09-12 09:30:35 (GMT)
commitaa3ca2b432ab346c28ea7c758cbbf57ca346e139 (patch)
treedec236eb51e746ae123edb3e9c01a5595381e12f /Source/CMakeSetupCMD.cxx
parente2ad65d3c27177b8f3ee3c9b81382ea883a3bfbd (diff)
downloadCMake-aa3ca2b432ab346c28ea7c758cbbf57ca346e139.zip
CMake-aa3ca2b432ab346c28ea7c758cbbf57ca346e139.tar.gz
CMake-aa3ca2b432ab346c28ea7c758cbbf57ca346e139.tar.bz2
ENH: CMake and configure now use SUBDIRS in CMakeLists.txt to find all the directories of the system.
Diffstat (limited to 'Source/CMakeSetupCMD.cxx')
-rw-r--r--Source/CMakeSetupCMD.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/CMakeSetupCMD.cxx b/Source/CMakeSetupCMD.cxx
index 46b2033..4ffd20c 100644
--- a/Source/CMakeSetupCMD.cxx
+++ b/Source/CMakeSetupCMD.cxx
@@ -1,8 +1,8 @@
-#include "cmDSWBuilder.h"
-#include "cmDSPBuilder.h"
+#include "cmDSWMakefile.h"
+#include "cmDSPMakefile.h"
#include <iostream>
-void SetArgs(cmPCBuilder& builder, int ac, char** av)
+void SetArgs(cmMakefile& builder, int ac, char** av)
{
for(int i =3; i < ac; i++)
{
@@ -16,7 +16,7 @@ void SetArgs(cmPCBuilder& builder, int ac, char** av)
{
std::string path = arg.substr(2);
std::cerr << "set makefile dir " << path.c_str() << std::endl;
- builder.SetMakefileDirectory(path.c_str());
+ builder.SetCurrentDirectory(path.c_str());
}
if(arg.find("-O",0) != std::string::npos)
{
@@ -45,17 +45,17 @@ main(int ac, char** av)
std::string arg = av[2];
if(arg.find("-DSP", 0) != std::string::npos)
{
- cmDSPBuilder builder;
+ cmDSPMakefile builder;
SetArgs(builder, ac, av);
- builder.SetInputMakefilePath(av[1]);
- builder.CreateDSPFile();
+ builder.ReadMakefile(av[1]);
+ builder.OutputDSPFile();
}
else
{
- cmDSWBuilder builder;
+ cmDSWMakefile builder;
SetArgs(builder, ac, av);
- builder.SetInputMakefilePath(av[1]);
- builder.CreateDSWFile();
+ builder.ReadMakefile(av[1]);
+ builder.OutputDSWFile();
}
return 0;
}