diff options
author | Luis Ibanez <luis.ibanez@kitware.com> | 2001-12-21 14:55:57 (GMT) |
---|---|---|
committer | Luis Ibanez <luis.ibanez@kitware.com> | 2001-12-21 14:55:57 (GMT) |
commit | 3b9b80b14ccfcfabb8db43cfb3c08e8c89f5d14b (patch) | |
tree | ce8ad70a3f86e126fb34759b2c7b13d0c06a64d6 /Source/cmFLTKWrapUICommand.cxx | |
parent | 602d0ee1029f22eb1734e7415b64670f05d4ded4 (diff) | |
download | CMake-3b9b80b14ccfcfabb8db43cfb3c08e8c89f5d14b.zip CMake-3b9b80b14ccfcfabb8db43cfb3c08e8c89f5d14b.tar.gz CMake-3b9b80b14ccfcfabb8db43cfb3c08e8c89f5d14b.tar.bz2 |
ENH: No longer tries to create a directory for the output
Diffstat (limited to 'Source/cmFLTKWrapUICommand.cxx')
-rw-r--r-- | Source/cmFLTKWrapUICommand.cxx | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/Source/cmFLTKWrapUICommand.cxx b/Source/cmFLTKWrapUICommand.cxx index af04381..c4b42e4 100644 --- a/Source/cmFLTKWrapUICommand.cxx +++ b/Source/cmFLTKWrapUICommand.cxx @@ -65,14 +65,6 @@ bool cmFLTKWrapUICommand::InitialPass(std::vector<std::string> const& args) return false; } - std::string outputGUIDirectory = m_Makefile->GetCurrentOutputDirectory(); - - if(!cmSystemTools::MakeDirectory( outputGUIDirectory.c_str() ) ) - { - cmSystemTools::Error("Error failed create GUI directory:", - outputGUIDirectory.c_str() ); - - } // what is the current source dir std::string cdir = m_Makefile->GetCurrentDirectory(); @@ -91,9 +83,11 @@ bool cmFLTKWrapUICommand::InitialPass(std::vector<std::string> const& args) return false; } + std::string outputDirectory = m_Makefile->GetCurrentOutputDirectory(); + // Some of the generated files are *.h so the directory "GUI" // where they are created have to be added to the include path - m_Makefile->AddIncludeDirectory( outputGUIDirectory.c_str() ); + m_Makefile->AddIncludeDirectory( outputDirectory.c_str() ); for(std::vector<cmSourceFile>::iterator i = l->second.begin(); i != l->second.end(); i++) @@ -107,9 +101,9 @@ bool cmFLTKWrapUICommand::InitialPass(std::vector<std::string> const& args) cmSourceFile source_file; const bool headerFileOnly = true; header_file.SetName(curr.GetSourceName().c_str(), - outputGUIDirectory.c_str(), "h",headerFileOnly); + outputDirectory.c_str(), "h",headerFileOnly); source_file.SetName(curr.GetSourceName().c_str(), - outputGUIDirectory.c_str(), "cxx",!headerFileOnly); + outputDirectory.c_str(), "cxx",!headerFileOnly); std::string origname = cdir + "/" + curr.GetSourceName() + "." + curr.GetSourceExtension(); std::string hname = header_file.GetFullPath(); |