mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
Simplify boolean expressions
Use clang-tidy's readability-simplify-boolean-expr checker. After applying the fix-its, revise all changes *very* carefully. Be aware of false positives and invalid changes.
This commit is contained in:
committed by
Brad King
parent
d6754d37d5
commit
7f6b8d3399
@@ -454,8 +454,7 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules(
|
||||
std::vector<std::string> archiveFinishCommands;
|
||||
std::string::size_type archiveCommandLimit = std::string::npos;
|
||||
if (this->GeneratorTarget->GetType() == cmState::STATIC_LIBRARY) {
|
||||
haveStaticLibraryRule =
|
||||
this->Makefile->GetDefinition(linkRuleVar) ? true : false;
|
||||
haveStaticLibraryRule = this->Makefile->IsDefinitionSet(linkRuleVar);
|
||||
std::string arCreateVar = "CMAKE_";
|
||||
arCreateVar += linkLanguage;
|
||||
arCreateVar += "_ARCHIVE_CREATE";
|
||||
|
||||
Reference in New Issue
Block a user