fixed Debug compilation on Windows (it works for VS versions > 2005)

pull/13383/head
Alexander Shishkov 13 years ago
parent 5777689fe9
commit 216ef24b92
  1. 1
      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()

Loading…
Cancel
Save