summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmDSPWriter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx
index b936a11..76dc207 100644
--- a/Source/cmDSPWriter.cxx
+++ b/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;
}