File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -225,11 +225,19 @@ endfunction()
225225
226226function (__project_build_tools_recursive_scan_unwrap OUTPUT_VAR INPUT_VAR)
227227 # With sub-expressions
228- if (INPUT_VAR MATCHES "^\\\$ <.*>:([^>]+)>? $" )
228+ if (INPUT_VAR MATCHES "^\\\$ <.*>:([^>]+)>$" )
229229 set (${OUTPUT_VAR}
230230 "${CMAKE_MATCH_1} "
231231 PARENT_SCOPE)
232- elseif (INPUT_VAR MATCHES "^\\\$ <[^:]+:([^>]+)>?$" )
232+ elseif (INPUT_VAR MATCHES "^\\\$ <.*>:([^>]+)$" )
233+ set (${OUTPUT_VAR}
234+ "${CMAKE_MATCH_1} "
235+ PARENT_SCOPE)
236+ elseif (INPUT_VAR MATCHES "^\\\$ <[^:]+:([^>]+)>$" )
237+ set (${OUTPUT_VAR}
238+ "${CMAKE_MATCH_1} "
239+ PARENT_SCOPE)
240+ elseif (INPUT_VAR MATCHES "^\\\$ <[^:]+:([^>]+)$" )
233241 set (${OUTPUT_VAR}
234242 "${CMAKE_MATCH_1} "
235243 PARENT_SCOPE)
@@ -259,7 +267,8 @@ macro(__project_build_tools_recursive_scan_imported_locations)
259267 "${TARGET_NAME_ORIGIN_${__project_build_tools_recursive_call_level} }" )
260268 endif ()
261269 if (NOT DEFINED
262- __project_build_tools_recursive_scan_imported_locations_${TARGET_NAME} )
270+ __project_build_tools_recursive_scan_imported_locations_${TARGET_NAME}
271+ AND TARGET ${TARGET_NAME} )
263272 set (__project_build_tools_recursive_scan_imported_locations_${TARGET_NAME}
264273 TRUE )
265274 set (__lib_path)
You can’t perform that action at this time.
0 commit comments