Use list(FIND) to have more flexible lists.

If Travis builds this, then we know it is solid.
This commit is contained in:
Jason Felds
2015-07-02 20:52:03 -04:00
parent d1ce427a19
commit 09621811e8
+2 -1
View File
@@ -493,7 +493,8 @@ elseif(APPLE)
)
else() # Unix / Linux
# TODO: Remember to find and locate the zip archive files.
sm_list_replace(SMDATA_LINK_LIB 8 "${JPEG_LIBRARY}")
list(FIND SMDATA_LINK_LIB "jpeg" JPEG_INDEX)
sm_list_replace(SMDATA_LINK_LIB ${JPEG_INDEX} "${JPEG_LIBRARY}")
if (HAS_FFMPEG)
if(WITH_SYSTEM_FFMPEG)
list(APPEND SMDATA_LINK_LIB