mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-27 03:08:35 -06:00
BUG: Check for building shared libraries should read from makefile's setting, not directly from the cache.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user