Skip to content

Commit 0e1cd05

Browse files
committed
Bugfix for libheif detection
When the LIBHEIF_LIBRARIES refers to targets (like happening when conan packaging provides the targets), an empty string from get_filename_component will fail as it is not counted as an argument if used without quotes.
1 parent 0457774 commit 0e1cd05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)