mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00

Keep track of CPS files we have imported in CMake's state, and use this (instead of the prior, temporary work-around that used `<name>_CONFIG`) as a guard for trying to import more than once from the same file. This has two advantages; first, it is robust against finding the same package name in different locations in alternating searches, and second, it allows us to load additional appendices associated with a root package that has already been loaded. Fixes: #26731
18 lines
426 B
C++
18 lines
426 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 "cmConfigure.h" // IWYU pragma: keep
|
|
|
|
#include <string>
|
|
#include <unordered_set>
|
|
|
|
/** \class cmPackageState
|
|
* \brief Information about the state of an imported package.
|
|
*/
|
|
class cmPackageState
|
|
{
|
|
public:
|
|
std::unordered_set<std::string> ImportedFiles;
|
|
};
|