fixed opencv-ffmpeg compile bug with MinGW (thanks to takacsd for the patch)
This commit is contained in:
@@ -45,8 +45,13 @@ set_target_properties(${the_target} PROPERTIES
|
|||||||
DEFINE_SYMBOL "CVAPI_EXPORTS"
|
DEFINE_SYMBOL "CVAPI_EXPORTS"
|
||||||
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/"
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/"
|
||||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/"
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/"
|
||||||
|
)
|
||||||
|
|
||||||
|
if (MSVC)
|
||||||
|
set_target_properties(${the_target} PROPERTIES
|
||||||
LINK_FLAGS "/NODEFAULTLIB:libc /DEBUG"
|
LINK_FLAGS "/NODEFAULTLIB:libc /DEBUG"
|
||||||
)
|
)
|
||||||
|
endif ()
|
||||||
|
|
||||||
install(TARGETS ${the_target}
|
install(TARGETS ${the_target}
|
||||||
RUNTIME DESTINATION bin COMPONENT main
|
RUNTIME DESTINATION bin COMPONENT main
|
||||||
|
|||||||
Reference in New Issue
Block a user