From 3b9b80b14ccfcfabb8db43cfb3c08e8c89f5d14b Mon Sep 17 00:00:00 2001 From: Luis Ibanez Date: Fri, 21 Dec 2001 09:55:57 -0500 Subject: [PATCH] ENH: No longer tries to create a directory for the output --- Source/cmFLTKWrapUICommand.cxx | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/Source/cmFLTKWrapUICommand.cxx b/Source/cmFLTKWrapUICommand.cxx index af04381b6..c4b42e402 100644 --- a/Source/cmFLTKWrapUICommand.cxx +++ b/Source/cmFLTKWrapUICommand.cxx @@ -65,14 +65,6 @@ bool cmFLTKWrapUICommand::InitialPass(std::vector 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 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::iterator i = l->second.begin(); i != l->second.end(); i++) @@ -107,9 +101,9 @@ bool cmFLTKWrapUICommand::InitialPass(std::vector 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();