Optimize CMake look by breaking from it immediately

This change is done mostly not for run-time optimizations purposes but
to show that we don't need to continue iterating after missing at least
one missing target dependency.
This commit is contained in:
Vadim Zeitlin
2026-03-13 19:25:56 +01:00
parent 348957245d
commit d4807763cc

View File

@@ -115,6 +115,7 @@ function(soci_public_dependency)
foreach (TGT IN LISTS PUBLIC_DEP_DEP_TARGETS)
if (NOT TARGET "${TGT}")
set(SKIP_SEARCH OFF)
break()
endif()
endforeach()