|
|
@ -47,7 +47,14 @@ if (HAVE_CUDA) |
|
|
|
#string(REPLACE "/W4" "/W3" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") |
|
|
|
#string(REPLACE "/W4" "/W3" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") |
|
|
|
#string(REPLACE "/W4" "/W3" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}") |
|
|
|
#string(REPLACE "/W4" "/W3" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}") |
|
|
|
#string(REPLACE "/W4" "/W3" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}") |
|
|
|
#string(REPLACE "/W4" "/W3" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}") |
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4211 /wd4201 /wd4100 /wd4505 /wd4408 /EHc-") |
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4211 /wd4201 /wd4100 /wd4505 /wd4408") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string(REPLACE "/EHsc-" "/EHs" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") |
|
|
|
|
|
|
|
string(REPLACE "/EHsc-" "/EHs" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}") |
|
|
|
|
|
|
|
string(REPLACE "/EHsc-" "/EHs" CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}") |
|
|
|
|
|
|
|
string(REPLACE "/EHsc-" "/EHs" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") |
|
|
|
|
|
|
|
string(REPLACE "/EHsc-" "/EHs" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}") |
|
|
|
|
|
|
|
string(REPLACE "/EHsc-" "/EHs" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
CUDA_COMPILE(cuda_objs ${lib_cuda}) |
|
|
|
CUDA_COMPILE(cuda_objs ${lib_cuda}) |
|
|
@ -75,7 +82,6 @@ set_target_properties(${the_target} PROPERTIES |
|
|
|
VERSION ${OPENCV_VERSION} |
|
|
|
VERSION ${OPENCV_VERSION} |
|
|
|
SOVERSION ${OPENCV_SOVERSION} |
|
|
|
SOVERSION ${OPENCV_SOVERSION} |
|
|
|
OUTPUT_NAME "${the_target}${OPENCV_DLLVERSION}" |
|
|
|
OUTPUT_NAME "${the_target}${OPENCV_DLLVERSION}" |
|
|
|
COMPILE_FLAGS "/EHc-" |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
# Additional target properties |
|
|
|
# Additional target properties |
|
|
|