Commit d3aa2280 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed opencv-ffmpeg compile bug with MinGW (thanks to takacsd for the patch)

parent 098795cd
......@@ -45,9 +45,14 @@ set_target_properties(${the_target} PROPERTIES
DEFINE_SYMBOL "CVAPI_EXPORTS"
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/"
LINK_FLAGS "/NODEFAULTLIB:libc /DEBUG"
)
if (MSVC)
set_target_properties(${the_target} PROPERTIES
LINK_FLAGS "/NODEFAULTLIB:libc /DEBUG"
)
endif ()
install(TARGETS ${the_target}
RUNTIME DESTINATION bin COMPONENT main
ARCHIVE DESTINATION lib COMPONENT main
......
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