BUG: Check for building shared libraries should read from makefile's setting, not directly from the cache.

This commit is contained in:
Brad King 2001-06-27 15:09:22 -04:00
parent dce7d07038
commit 459dfc7531
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ void cmDSPWriter::OutputDSPFile()
// Create the DSP or set of DSP's for libraries and executables // Create the DSP or set of DSP's for libraries and executables
m_LibraryBuildType = STATIC_LIBRARY; m_LibraryBuildType = STATIC_LIBRARY;
if(cmCacheManager::GetInstance()->IsOn("BUILD_SHARED_LIBS")) if(!cmSystemTools::IsOff(m_Makefile->GetDefinition("BUILD_SHARED_LIBS")))
{ {
m_LibraryBuildType = DLL; m_LibraryBuildType = DLL;
} }