Skip to content

Commit 3092c42

Browse files
authored
build: use quote to avoid error if variable is empty (#5053)
Problem identified by @irieger Ingmar Rieger, solves a problem that pops up when Conan build provides the targets. Signed-off-by: Larry Gritz <lg@larrygritz.com>
1 parent 3ec0b8a commit 3092c42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/heif.imageio/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (Libheif_FOUND)
88
set (_static_libraries_found 0)
99
foreach (_libeheif_library IN LISTS LIBHEIF_LIBRARIES)
1010
get_filename_component (_ext ${_libeheif_library} LAST_EXT)
11-
list (FIND _static_suffixes ${_ext} _index)
11+
list (FIND _static_suffixes "${_ext}" _index)
1212
if (${_index} GREATER -1)
1313
MATH (EXPR _static_libraries_found "${_static_libraries_found}+1")
1414
endif()

0 commit comments

Comments
 (0)