Files
cmake/Source/cmDirectoryPropertyHelper.h
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

29 lines
981 B
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 cmValue;
enum class cmGetDirectoryPropertyResult
{
Success,
DirectoryNotFound,
};
// Resolve a DIRECTORY scope name to its makefile. Returns nullptr if
// no such directory has been processed. An empty dirName returns
// &callerMf (i.e. the current directory's makefile).
cmMakefile* cmResolveDirectoryMakefile(cmMakefile& callerMf,
std::string const& dirName);
cmGetDirectoryPropertyResult cmGetDirectoryProperty(
std::string const& dirName, std::string const& propertyName,
cmMakefile& callerMf, cmValue& propertyValue);
// Overload for callers that have already resolved the target directory.
cmGetDirectoryPropertyResult cmGetDirectoryProperty(
cmMakefile& mf, std::string const& propertyName, cmValue& propertyValue);