Преглед изворни кода

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

Brad King пре 24 година
родитељ
комит
459dfc7531
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Source/cmDSPWriter.cxx

+ 1 - 1
Source/cmDSPWriter.cxx

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