mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user