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

26 lines
893 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>
#include <vector>
class cmExecutionStatus;
class cmValue;
enum class cmGetSourceFilePropertyResult
{
Success,
ScopeError, // directory scope validation failed
SourceNotFound, // source file does not exist in this directory scope
Error, // unexpected internal failure (e.g. source could not be created)
};
cmGetSourceFilePropertyResult cmGetSourceFileProperty(
std::string const& sourceName, std::string const& propertyName,
cmExecutionStatus& status, bool sourceFileDirectoryOptionEnabled,
bool sourceFileTargetOptionEnabled,
std::vector<std::string>& sourceFileDirectories,
std::vector<std::string>& sourceFileTargetDirectories,
cmValue& propertyValue, bool alwaysCreateSource = false);