cmake: allow custom OpenCV_ARCH / OpenCV_RUNTIME values

backport 8e21f808be
pull/10509/head
Alexander Alekhin 7 years ago committed by Alexander Alekhin
parent 61d8292652
commit fdefc4b09d
  1. 4
      cmake/OpenCVConfig.cmake
  2. 4
      cmake/OpenCVDetectCXXCompiler.cmake

@ -61,7 +61,9 @@ if(NOT DEFINED OpenCV_CUDA)
endif()
endif()
if(MSVC)
if(DEFINED OpenCV_ARCH AND DEFINED OpenCV_RUNTIME)
# custom overrided values
elseif(MSVC)
if(CMAKE_CL_64)
set(OpenCV_ARCH x64)
set(OpenCV_TBB_ARCH intel64)

@ -82,7 +82,9 @@ if(NOT DEFINED OpenCV_STATIC)
endif()
endif()
if(MSVC)
if(DEFINED OpenCV_ARCH AND DEFINED OpenCV_RUNTIME)
# custom overrided values
elseif(MSVC)
if(CMAKE_CL_64)
set(OpenCV_ARCH x64)
else()

Loading…
Cancel
Save