fixed opencv-ffmpeg compile bug with MinGW (thanks to takacsd for the patch)
This commit is contained in:
parent
098795cd16
commit
d3aa228073
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user