Commit f613b1f1 authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

FindSIMGRID: fix foreach loop

parent 32c1ba6a
......@@ -146,7 +146,8 @@ if( (NOT PKG_CONFIG_EXECUTABLE) OR (PKG_CONFIG_EXECUTABLE AND NOT SIMGRID_FOUND)
mark_as_advanced(SIMGRID_${simgrid_hdr}_DIRS)
endforeach()
else()
set(SIMGRID_${simgrid_hdr}_DIRS "SIMGRID_${simgrid_hdr}_DIRS-NOTFOUND")
foreach(simgrid_hdr ${SIMGRID_hdrs_to_find})
set(SIMGRID_${simgrid_hdr}_DIRS "SIMGRID_${simgrid_hdr}_DIRS-NOTFOUND")
find_path(SIMGRID_${simgrid_hdr}_DIRS
NAMES ${simgrid_hdr}
HINTS ${_inc_env}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment