mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-26 10:48:38 -06:00
Source sweep: Use cmIsOn instead of cmSystemTools::IsOn
This replaces invocations of - `cmSystemTools::IsInternallyOn` with `cmIsInternallyOn` - `cmSystemTools::IsNOTFOUND` with `cmIsNOTFOUND` - `cmSystemTools::IsOn` with `cmIsOn` - `cmSystemTools::IsOff` with `cmIsOff`
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include "cmMessageType.h"
|
||||
#include "cmState.h"
|
||||
#include "cmStateTypes.h"
|
||||
#include "cmSystemTools.h"
|
||||
#include "cmStringAlgorithms.h"
|
||||
#include "cmTarget.h"
|
||||
|
||||
bool cmAddLibraryCommand(std::vector<std::string> const& args,
|
||||
@@ -27,7 +27,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 (cmSystemTools::IsOff(mf.GetDefinition("BUILD_SHARED_LIBS"))) {
|
||||
if (cmIsOff(mf.GetDefinition("BUILD_SHARED_LIBS"))) {
|
||||
type = cmStateEnums::STATIC_LIBRARY;
|
||||
}
|
||||
bool excludeFromAll = false;
|
||||
|
||||
Reference in New Issue
Block a user