Commit 7f98acf2 authored by Guillaume Pasero's avatar Guillaume Pasero

PKG: fix parsing of targets

parent 38a00d4e
......@@ -198,7 +198,7 @@ prepare_search_dirs(PKG_SEARCHDIRS)
set(PKG_PEFILES)
prepare_file_list(PKG_PEFILES)
foreach(pfile ${PKG_PEFILES})
process_file_recurse(${pfile_name})
process_file_recurse(${pfile})
endforeach()
install_include_dirs()
......
......@@ -36,7 +36,7 @@ function(prepare_file_list file_list_result)
set(_IMPORT_PREFIX ${SUPERBUILD_INSTALL_DIR})
foreach(f ${_targets_config_files})
file(STRINGS ${f} _f_content REGEX " IMPORTED_LOCATION_[A-Z]+ ")
string(REGEX REPLACE " +IMPORTED_LOCATION_[A-Z]+ (\"[^\"]+\")" "\\1;" _filtered ${_f_content})
string(REGEX REPLACE " +IMPORTED_LOCATION_[A-Z]+ \"([^\"]+)\"" "\\1;" _filtered ${_f_content})
string(CONFIGURE "${_filtered}" _configured)
list(APPEND file_list "${_configured}")
endforeach()
......
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