Skip to content

Commit

Permalink
cleanup based on discussion in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
greenstein committed Sep 18, 2023
1 parent 9edc31d commit 296df45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/ffmpeg.imageio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ if (FFmpeg_FOUND)
set (_static_suffixes .lib .a)
set (_static_libraries_found 0)

foreach(_ffmpeg_library IN LISTS FFMPEG_LIBRARIES)
get_filename_component(_ext ${_ffmpeg_library} LAST_EXT)
foreach (_ffmpeg_library IN LISTS FFMPEG_LIBRARIES)
get_filename_component (_ext ${_ffmpeg_library} LAST_EXT)
list (FIND _static_suffixes ${_ext} _index)
if (${_index} GREATER -1)
MATH(EXPR _static_libraries_found "${_static_libraries_found}+1")
MATH (EXPR _static_libraries_found "${_static_libraries_found}+1")
endif()
endforeach()

Expand Down
6 changes: 3 additions & 3 deletions src/heif.imageio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ if (Libheif_FOUND)
set (_static_suffixes .lib .a)
set (_static_libraries_found 0)

foreach(_libeheif_library IN LISTS LIBHEIF_LIBRARIES)
get_filename_component(_ext ${_libeheif_library} LAST_EXT)
foreach (_libeheif_library IN LISTS LIBHEIF_LIBRARIES)
get_filename_component (_ext ${_libeheif_library} LAST_EXT)
list (FIND _static_suffixes ${_ext} _index)
if (${_index} GREATER -1)
MATH(EXPR _static_libraries_found "${static_libraries_found}+1")
MATH (EXPR _static_libraries_found "${static_libraries_found}+1")
endif()
endforeach()

Expand Down

0 comments on commit 296df45

Please sign in to comment.