diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx index 9881243ce..dea16426e 100644 --- a/Source/cmFindBase.cxx +++ b/Source/cmFindBase.cxx @@ -603,6 +603,10 @@ void cmFindBase::AddFindPrefix(std::vector& dest, dirWithSubdir += "/sbin"; dest.push_back(dirWithSubdir); } + if(!subdir.empty()) + { + dest.push_back(*it); + } } }