Skip to content

Commit

Permalink
Need to break out of the loop when searching the suffixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenrbrandt committed Nov 11, 2023
1 parent 45c1fe1 commit 124d430
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/templates/hpxcxx.in
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,16 @@ while i < len(sys.argv):

pkgconf = None
for path in pkgconfpath:
for suffix in [pkgconf_suffix, "_release", "_relwithdebuginfo","_debug","_minsizerel"]:
found = False
for suffix in [pkgconf_suffix, "_release", "_relwithdebuginfo","_debug"]:
hpath = os.path.join(path,"hpx_application")+suffix+".pc"
if os.path.exists(hpath):
pkgconf = path
pkgconf_suffix = suffix
found = True
break
if found:
break

if pkgconf == None:
sys.stderr.write('Cannot locate HPX\n')
Expand Down

0 comments on commit 124d430

Please sign in to comment.