diff options
author | Kyle Edwards <kyedwards@nvidia.com> | 2024-08-02 20:18:44 (GMT) |
---|---|---|
committer | Kyle Edwards <kyedwards@nvidia.com> | 2024-08-02 20:18:44 (GMT) |
commit | f8264cf2ffc3daabffe25365a5e91865d97d147b (patch) | |
tree | 96055e7632a93148205b81512f071d5fc2b1b08e /Source/cmFindCommon.h | |
parent | 289c30ad3ab31dbdc5348bf5450344f6ec08ceca (diff) | |
download | CMake-f8264cf2ffc3daabffe25365a5e91865d97d147b.zip CMake-f8264cf2ffc3daabffe25365a5e91865d97d147b.tar.gz CMake-f8264cf2ffc3daabffe25365a5e91865d97d147b.tar.bz2 |
find_package(): Debug re-rooting behavior
find_package()'s debug mode provides information about which
prefixes are searched, but not which roots are prepended to each
prefix. Display this information if debugging is enabled.
Diffstat (limited to 'Source/cmFindCommon.h')
-rw-r--r-- | Source/cmFindCommon.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmFindCommon.h b/Source/cmFindCommon.h index 41de797..1abf567 100644 --- a/Source/cmFindCommon.h +++ b/Source/cmFindCommon.h @@ -81,7 +81,8 @@ protected: void InitializeSearchPathGroups(); /** Place a set of search paths under the search roots. */ - void RerootPaths(std::vector<std::string>& paths); + void RerootPaths(std::vector<std::string>& paths, + std::string* debugBuffer = nullptr); /** Get ignored paths from CMAKE_[SYSTEM_]IGNORE_PATH variables. */ void GetIgnoredPaths(std::vector<std::string>& ignore); @@ -97,7 +98,8 @@ protected: No, Yes, }; - void ComputeFinalPaths(IgnorePaths ignorePaths); + void ComputeFinalPaths(IgnorePaths ignorePaths, + std::string* debugBuffer = nullptr); /** Compute the current default root path mode. */ void SelectDefaultRootPathMode(); |