File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
66set (CMAKE_CXX_EXTENSIONS OFF )
77set (CMAKE_POSITION_INDEPENDENT_CODE ON )
88
9+ # Use static MSVC runtime on Windows to match static OpenCV
10+ if (MSVC )
11+ set (CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG :Debug >:Debug >" CACHE STRING "" FORCE )
12+ endif ()
13+
914option (BUILD_TESTING "Build C++ unit tests" OFF )
1015option (BUILD_PYTHON_BINDINGS "Build Python pybind11 module" ON )
1116
@@ -67,6 +72,7 @@ set(BUILD_ZLIB ON CACHE BOOL "" FORCE)
6772set (OPENCV_GENERATE_PKGCONFIG OFF CACHE BOOL "" FORCE )
6873set (OPENCV_ENABLE_NONFREE OFF CACHE BOOL "" FORCE )
6974set (CV_DISABLE_OPTIMIZATION OFF CACHE BOOL "" FORCE )
75+ set (CPU_DISPATCH "" CACHE STRING "" FORCE )
7076set (ENABLE_PRECOMPILED_HEADERS OFF CACHE BOOL "" FORCE )
7177
7278FetchContent_Declare (
You can’t perform that action at this time.
0 commit comments