mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
cmTarget::GetProperty: return cmProp
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
#include "cmSystemTools.h"
|
||||
#include "cmTarget.h"
|
||||
|
||||
using cmProp = const std::string*;
|
||||
|
||||
namespace {
|
||||
/** \class cmDependInformation
|
||||
* \brief Store dependency information for a single source file.
|
||||
@@ -117,14 +119,13 @@ public:
|
||||
std::set<std::string> uniqueIncludes;
|
||||
std::vector<std::string> orderedAndUniqueIncludes;
|
||||
for (auto const& target : this->Makefile->GetTargets()) {
|
||||
const char* incDirProp =
|
||||
target.second.GetProperty("INCLUDE_DIRECTORIES");
|
||||
cmProp incDirProp = target.second.GetProperty("INCLUDE_DIRECTORIES");
|
||||
if (!incDirProp) {
|
||||
continue;
|
||||
}
|
||||
|
||||
std::string incDirs = cmGeneratorExpression::Preprocess(
|
||||
incDirProp, cmGeneratorExpression::StripAllGeneratorExpressions);
|
||||
*incDirProp, cmGeneratorExpression::StripAllGeneratorExpressions);
|
||||
|
||||
std::vector<std::string> includes = cmExpandedList(incDirs);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user