Commit a370ebc2 authored by Ghislain MARY's avatar Ghislain MARY

Do not create the .lib file for openh264 if it already exists.

parent caa056a1
......@@ -23,11 +23,11 @@
if(EXISTS ${INSTALL_PREFIX}/lib/libopenh264.a)
execute_process(COMMAND "ranlib" "${INSTALL_PREFIX}/lib/libopenh264.a")
endif()
if(EXISTS ${INSTALL_PREFIX}/bin/openh264.dll)
if(EXISTS ${INSTALL_PREFIX}/bin/openh264.dll AND NOT EXISTS ${INSTALL_PREFIX}/lib/openh264_dll.lib)
execute_process(COMMAND "${PYTHON_EXECUTABLE}" "${SOURCE_DIR}/cmake/importlib.py" "${INSTALL_PREFIX}/bin/openh264.dll" "${INSTALL_PREFIX}/lib/openh264.lib")
endif()
if(EXISTS ${INSTALL_PREFIX}/lib/libopenh264.0.dylib)
execute_process(COMMAND install_name_tool -id @rpath/libopenh264.0.dylib ${INSTALL_PREFIX}/lib/libopenh264.0.dylib)
endif()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment