mirror of
https://github.com/zebrajr/opencv.git
synced 2025-12-06 12:19:50 +01:00
Fix standalone plugin compilation for Windows
This commit is contained in:
parent
317db39a5e
commit
b89410a266
|
|
@ -413,11 +413,11 @@ if(APPLE AND NOT CMAKE_CROSSCOMPILING AND NOT DEFINED ENV{LDFLAGS} AND EXISTS "/
|
|||
endif()
|
||||
|
||||
if(ENABLE_BUILD_HARDENING)
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/OpenCVCompilerDefenses.cmake)
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/OpenCVCompilerDefenses.cmake")
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
include(cmake/OpenCVCRTLinkage.cmake)
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/OpenCVCRTLinkage.cmake")
|
||||
add_definitions(-D_VARIADIC_MAX=10)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user