summaryrefslogtreecommitdiffstats
path: root/Source/cmTargetSourcesCommand.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-08-24 17:58:19 (GMT)
committerBrad King <brad.king@kitware.com>2018-08-27 18:07:43 (GMT)
commitc8fd23ec6f33eef8cf11d81938c379590080bd19 (patch)
tree75a04f4a2a037ededbee0a92628c103af03fc816 /Source/cmTargetSourcesCommand.cxx
parent0897c3cf585853358ef7ec2bd180dbb2e3288b21 (diff)
downloadCMake-c8fd23ec6f33eef8cf11d81938c379590080bd19.zip
CMake-c8fd23ec6f33eef8cf11d81938c379590080bd19.tar.gz
CMake-c8fd23ec6f33eef8cf11d81938c379590080bd19.tar.bz2
cmMakefile: return directories as const std::string&
Diffstat (limited to 'Source/cmTargetSourcesCommand.cxx')
-rw-r--r--Source/cmTargetSourcesCommand.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmTargetSourcesCommand.cxx b/Source/cmTargetSourcesCommand.cxx
index 62e323c..12db7a5 100644
--- a/Source/cmTargetSourcesCommand.cxx
+++ b/Source/cmTargetSourcesCommand.cxx
@@ -2,7 +2,6 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmTargetSourcesCommand.h"
-#include <cstring>
#include <sstream>
#include "cmAlgorithms.h"
@@ -71,8 +70,8 @@ std::vector<std::string> cmTargetSourcesCommand::ConvertToAbsoluteContent(
if (cmSystemTools::FileIsFullPath(src) ||
cmGeneratorExpression::Find(src) == 0 ||
(!isInterfaceContent &&
- strcmp(this->Makefile->GetCurrentSourceDirectory(),
- tgt->GetMakefile()->GetCurrentSourceDirectory()) == 0)) {
+ (this->Makefile->GetCurrentSourceDirectory() ==
+ tgt->GetMakefile()->GetCurrentSourceDirectory()))) {
absoluteSrc = src;
} else {
changedPath = true;