From 216ef24b92d69ecfbbe80bdc690234a47eb33495 Mon Sep 17 00:00:00 2001 From: Alexander Shishkov Date: Mon, 26 Mar 2012 07:33:01 +0000 Subject: [PATCH] fixed Debug compilation on Windows (it works for VS versions > 2005) --- cmake/OpenCVCompilerOptions.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/OpenCVCompilerOptions.cmake b/cmake/OpenCVCompilerOptions.cmake index 98d7acaa54..47590a8a42 100644 --- a/cmake/OpenCVCompilerOptions.cmake +++ b/cmake/OpenCVCompilerOptions.cmake @@ -25,6 +25,7 @@ if(MSVC) # Remove unreferenced functions: function level linking set(OPENCV_EXTRA_C_FLAGS "${OPENCV_EXTRA_C_FLAGS} /Gy") + set(OPENCV_EXTRA_C_FLAGS_DEBUG "${OPENCV_EXTRA_C_FLAGS_DEBUG} /bigobj") if(BUILD_WITH_DEBUG_INFO) set(OPENCV_EXTRA_C_FLAGS_RELEASE "${OPENCV_EXTRA_C_FLAGS_RELEASE} /Zi") endif()