cmFindCommon: use DebugModeEnabled to query for debug mode

This simplifies changing how debug mode is represented.
This commit is contained in:
Ben Boeckel
2025-04-09 14:11:59 +02:00
parent 76ea613f4c
commit bd5cb1f8e6
4 changed files with 28 additions and 28 deletions
+3 -3
View File
@@ -85,7 +85,7 @@ void cmFindLibraryCommand::AddArchitecturePaths(char const* suffix)
original.swap(this->SearchPaths);
for (std::string const& o : original) {
this->AddArchitecturePath(o, 0, suffix);
if (this->DebugMode) {
if (this->DebugModeEnabled()) {
std::string msg = cmStrCat(
"find_library(", this->VariableName, ") removed original suffix ", o,
" from PATH_SUFFIXES while adding architecture paths for suffix '",
@@ -153,7 +153,7 @@ void cmFindLibraryCommand::AddArchitecturePath(
if (use_dirX) {
dirX += "/";
if (this->DebugMode) {
if (this->DebugModeEnabled()) {
std::string msg = cmStrCat(
"find_library(", this->VariableName, ") added replacement path ",
dirX, " to PATH_SUFFIXES for architecture suffix '", suffix, "'");
@@ -164,7 +164,7 @@ void cmFindLibraryCommand::AddArchitecturePath(
if (use_dir) {
this->SearchPaths.push_back(dir);
if (this->DebugMode) {
if (this->DebugModeEnabled()) {
std::string msg = cmStrCat(
"find_library(", this->VariableName, ") added replacement path ",
dir, " to PATH_SUFFIXES for architecture suffix '", suffix, "'");