Files
cmake/Source/cmTargetPropertyHelper.h
T
Tom Osika 2a2012e913 cmake_language: Add PRINT_PROPERTIES operation
Print CMake entities' properties in human-readable form for debugging.

Issue: #27513
2026-08-10 17:41:05 -04:00

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);