You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
FindFFmpeg: Expand duplicate-removal
Repeated invocations (e.g. `cmake .` in an already-configured dir) might cause variables to collect duplicates.
This commit is contained in:
@@ -180,9 +180,16 @@ foreach (_component ${FFmpeg_FIND_COMPONENTS})
|
||||
endif ()
|
||||
endforeach ()
|
||||
|
||||
# Build the include path with duplicates removed.
|
||||
# Build the result lists with duplicates removed, in case of repeated
|
||||
# invocations.
|
||||
if (FFmpeg_INCLUDE_DIRS)
|
||||
list(REMOVE_DUPLICATES FFmpeg_INCLUDE_DIRS)
|
||||
endif()
|
||||
if (FFmpeg_LIBRARIES)
|
||||
list(REMOVE_DUPLICATES FFmpeg_LIBRARIES)
|
||||
endif()
|
||||
if(FFmpeg_DEFINITIONS)
|
||||
list(REMOVE_DUPLICATES FFmpeg_DEFINITIONS)
|
||||
endif ()
|
||||
|
||||
# cache the vars.
|
||||
|
||||
Reference in New Issue
Block a user