diff options
author | Brad King <brad.king@kitware.com> | 2001-05-04 14:44:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-05-04 14:44:11 (GMT) |
commit | dec4d7afe1cd07f58167d51b355757eab24f0d7a (patch) | |
tree | 4a666ef7e02b21e405baf9729152ce07fd7f4190 /Source/cmDSPWriter.cxx | |
parent | a0d40033701e20d1571b1ed2fdf3838671248f79 (diff) | |
download | CMake-dec4d7afe1cd07f58167d51b355757eab24f0d7a.zip CMake-dec4d7afe1cd07f58167d51b355757eab24f0d7a.tar.gz CMake-dec4d7afe1cd07f58167d51b355757eab24f0d7a.tar.bz2 |
ENH: Added use of CMAKE cache entry for generating the DSP build rules.
Diffstat (limited to 'Source/cmDSPWriter.cxx')
-rw-r--r-- | Source/cmDSPWriter.cxx | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx index 5333d88..3c2969c 100644 --- a/Source/cmDSPWriter.cxx +++ b/Source/cmDSPWriter.cxx @@ -126,38 +126,6 @@ void cmDSPMakefile::CreateSingleDSP(const char *lname, cmTarget &target) } -void cmDSPMakefile::WriteDSPBuildRule(std::ostream& fout) -{ - std::string dspname = *(m_CreatedProjectNames.end()-1); - dspname += ".dsp"; - std::string makefileIn = "\""; - makefileIn += m_Makefile->GetStartDirectory(); - makefileIn += "/"; - makefileIn += "CMakeLists.txt\""; - std::string dsprule = "\""; - dsprule += m_Makefile->GetHomeDirectory(); - dsprule += "/CMake/Source/CMakeSetupCMD\" "; - dsprule += makefileIn; - dsprule += " -DSP -H\""; - dsprule += m_Makefile->GetHomeDirectory(); - dsprule += "\" -S\""; - dsprule += m_Makefile->GetStartDirectory(); - dsprule += "\" -O\""; - dsprule += m_Makefile->GetStartOutputDirectory(); - dsprule += "\" -B\""; - dsprule += m_Makefile->GetHomeOutputDirectory(); - dsprule += "\""; - - std::set<std::string> depends; - std::set<std::string> outputs; - outputs.insert(outputs.begin(), dspname); - fout << "# Begin Source File\n\n"; - fout << "SOURCE=" << makefileIn.c_str() << "\n\n"; - this->WriteCustomRule(fout, makefileIn.c_str(), dsprule.c_str(), depends, outputs); - fout << "# End Source File\n"; -} - - void cmDSPMakefile::AddDSPBuildRule(cmSourceGroup& sourceGroup) { std::string dspname = *(m_CreatedProjectNames.end()-1); @@ -166,9 +134,7 @@ void cmDSPMakefile::AddDSPBuildRule(cmSourceGroup& sourceGroup) makefileIn += m_Makefile->GetStartDirectory(); makefileIn += "/"; makefileIn += "CMakeLists.txt\""; - std::string dsprule = "\""; - dsprule += m_Makefile->GetHomeDirectory(); - dsprule += "/CMake/Source/CMakeSetupCMD\" "; + std::string dsprule = "${CMAKE} "; dsprule += makefileIn; dsprule += " -DSP -H\""; dsprule += m_Makefile->GetHomeDirectory(); @@ -179,6 +145,7 @@ void cmDSPMakefile::AddDSPBuildRule(cmSourceGroup& sourceGroup) dsprule += "\" -B\""; dsprule += m_Makefile->GetHomeOutputDirectory(); dsprule += "\""; + m_Makefile->ExpandVariablesInString(dsprule); std::vector<std::string> outputs; outputs.push_back(dspname); |