mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge topic 'mk-directory'
c8fd23ec6f cmMakefile: return directories as const std::string&
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2311
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user