Skip to content

Commit 977ae71

Browse files
committed
Adaptor bad names in conan
1 parent b3b277e commit 977ae71

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

cmake/tools.cmake

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,19 @@ endfunction()
225225

226226
function(__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)

0 commit comments

Comments
 (0)