mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Print CMake entities' properties in human-readable form for debugging. Issue: #27513
31 lines
1.2 KiB
C++
31 lines
1.2 KiB
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file LICENSE.rst or https://cmake.org/licensing for details. */
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
class cmMakefile;
|
|
class cmTarget;
|
|
class cmValue;
|
|
|
|
enum class cmGetTargetPropertyResult
|
|
{
|
|
Success,
|
|
TargetNotFound,
|
|
};
|
|
|
|
cmGetTargetPropertyResult cmGetTargetProperty(std::string const& targetName,
|
|
std::string const& propertyName,
|
|
cmMakefile& mf,
|
|
cmValue& propertyValue);
|
|
|
|
// Overload for callers that have already resolved the target. The
|
|
// targetName is still required for ALIASED_TARGET / ALIAS_GLOBAL,
|
|
// which dispatch on whether the *lookup* name is an alias (not whether
|
|
// the resolved target is one).
|
|
cmGetTargetPropertyResult cmGetTargetProperty(std::string const& targetName,
|
|
cmTarget const* target,
|
|
std::string const& propertyName,
|
|
cmMakefile& mf,
|
|
cmValue& propertyValue);
|