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
26 lines
893 B
C++
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);
|