mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
Source: Use cmValue::IsOn and IsOff
Speed up a bit by calling members directly.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user