summaryrefslogtreecommitdiffstats
path: root/Source/cmAddLibraryCommand.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-21 19:32:43 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-21 19:32:43 (GMT)
commit569509f4bfbf44c67e237a01f957fdfe52223cfa (patch)
treefae8b2848d52b1f3ba8ed8f50f5e4135f170ee95 /Source/cmAddLibraryCommand.cxx
parent6c9b3b5c03b41842d3d79c1bd80691be7e5c6f89 (diff)
downloadCMake-569509f4bfbf44c67e237a01f957fdfe52223cfa.zip
CMake-569509f4bfbf44c67e237a01f957fdfe52223cfa.tar.gz
CMake-569509f4bfbf44c67e237a01f957fdfe52223cfa.tar.bz2
Fix newly discovered clang-tidy issues
Clang-tidy reports some issues only from the currently compiled source file and its associated header file. Separating the compilation of commands exposed some clang-tidy issues that were not reported previously. Fix them.
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r--Source/cmAddLibraryCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx
index 18118a3..56cf91a 100644
--- a/Source/cmAddLibraryCommand.cxx
+++ b/Source/cmAddLibraryCommand.cxx
@@ -270,8 +270,8 @@ bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args,
yet its linker language. */
if ((type == cmStateEnums::SHARED_LIBRARY ||
type == cmStateEnums::MODULE_LIBRARY) &&
- (this->Makefile->GetState()->GetGlobalPropertyAsBool(
- "TARGET_SUPPORTS_SHARED_LIBS") == false)) {
+ !this->Makefile->GetState()->GetGlobalPropertyAsBool(
+ "TARGET_SUPPORTS_SHARED_LIBS")) {
std::ostringstream w;
w << "ADD_LIBRARY called with "
<< (type == cmStateEnums::SHARED_LIBRARY ? "SHARED" : "MODULE")