BUG: fix circular depends on libraries and remove depends for static libraries
This commit is contained in:
parent
d0a8794746
commit
af30fe6745
|
@ -261,6 +261,7 @@ void cmDSPMakefile::WriteDSPEndGroup(std::ostream& fout)
|
|||
|
||||
void cmDSPMakefile::SetBuildType(BuildType b)
|
||||
{
|
||||
m_BuildType = b;
|
||||
switch(b)
|
||||
{
|
||||
case STATIC_LIBRARY:
|
||||
|
|
|
@ -39,6 +39,12 @@ public:
|
|||
*/
|
||||
void SetBuildType(BuildType);
|
||||
|
||||
BuildType GetBuildType()
|
||||
{
|
||||
return m_BuildType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return array of created DSP names in a STL vector.
|
||||
* Each executable must have its own dsp.
|
||||
|
@ -86,7 +92,7 @@ private:
|
|||
std::string m_DebugDLLLibraryOptions;
|
||||
std::string m_ReleaseDLLLibraryOptions;
|
||||
cmMakefile* m_Makefile;
|
||||
|
||||
BuildType m_BuildType;
|
||||
std::vector<std::string> m_Configurations;
|
||||
};
|
||||
|
||||
|
|
|
@ -261,6 +261,7 @@ void cmDSPMakefile::WriteDSPEndGroup(std::ostream& fout)
|
|||
|
||||
void cmDSPMakefile::SetBuildType(BuildType b)
|
||||
{
|
||||
m_BuildType = b;
|
||||
switch(b)
|
||||
{
|
||||
case STATIC_LIBRARY:
|
||||
|
|
|
@ -39,6 +39,12 @@ public:
|
|||
*/
|
||||
void SetBuildType(BuildType);
|
||||
|
||||
BuildType GetBuildType()
|
||||
{
|
||||
return m_BuildType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return array of created DSP names in a STL vector.
|
||||
* Each executable must have its own dsp.
|
||||
|
@ -86,7 +92,7 @@ private:
|
|||
std::string m_DebugDLLLibraryOptions;
|
||||
std::string m_ReleaseDLLLibraryOptions;
|
||||
cmMakefile* m_Makefile;
|
||||
|
||||
BuildType m_BuildType;
|
||||
std::vector<std::string> m_Configurations;
|
||||
};
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "cmSystemTools.h"
|
||||
#include "cmDSPMakefile.h"
|
||||
#include "cmMSProjectGenerator.h"
|
||||
#include <windows.h>
|
||||
//#include <windows.h>
|
||||
|
||||
|
||||
cmDSWMakefile::cmDSWMakefile(cmMakefile* m)
|
||||
|
@ -126,6 +126,8 @@ void cmDSWMakefile::WriteProject(std::ostream& fout,
|
|||
std::vector<std::string>::iterator i, end;
|
||||
i = project->GetMakefile()->GetLinkLibraries().begin();
|
||||
end = project->GetMakefile()->GetLinkLibraries().end();
|
||||
if(project->GetBuildType() != cmDSPMakefile::STATIC_LIBRARY)
|
||||
{
|
||||
for(;i!= end; ++i)
|
||||
{
|
||||
if (strcmp(i->c_str(),dspname))
|
||||
|
@ -135,6 +137,7 @@ void cmDSWMakefile::WriteProject(std::ostream& fout,
|
|||
fout << "End Project Dependency\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
fout << "}}}\n\n";
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "cmSystemTools.h"
|
||||
#include "cmDSPMakefile.h"
|
||||
#include "cmMSProjectGenerator.h"
|
||||
#include <windows.h>
|
||||
//#include <windows.h>
|
||||
|
||||
|
||||
cmDSWMakefile::cmDSWMakefile(cmMakefile* m)
|
||||
|
@ -126,6 +126,8 @@ void cmDSWMakefile::WriteProject(std::ostream& fout,
|
|||
std::vector<std::string>::iterator i, end;
|
||||
i = project->GetMakefile()->GetLinkLibraries().begin();
|
||||
end = project->GetMakefile()->GetLinkLibraries().end();
|
||||
if(project->GetBuildType() != cmDSPMakefile::STATIC_LIBRARY)
|
||||
{
|
||||
for(;i!= end; ++i)
|
||||
{
|
||||
if (strcmp(i->c_str(),dspname))
|
||||
|
@ -135,6 +137,7 @@ void cmDSWMakefile::WriteProject(std::ostream& fout,
|
|||
fout << "End Project Dependency\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
fout << "}}}\n\n";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue