diff options
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r-- | Source/cmAddLibraryCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx index 29fc09b..fe71333 100644 --- a/Source/cmAddLibraryCommand.cxx +++ b/Source/cmAddLibraryCommand.cxx @@ -26,7 +26,7 @@ bool cmAddLibraryCommand(std::vector<std::string> const& args, // Library type defaults to value of BUILD_SHARED_LIBS, if it exists, // otherwise it defaults to static library. cmStateEnums::TargetType type = cmStateEnums::SHARED_LIBRARY; - if (cmIsOff(mf.GetDefinition("BUILD_SHARED_LIBS"))) { + if (mf.GetDefinition("BUILD_SHARED_LIBS").IsOff()) { type = cmStateEnums::STATIC_LIBRARY; } bool excludeFromAll = false; |