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

This commit is contained in:
Alexander Shishkov 2012-03-26 07:33:01 +00:00
parent 5777689fe9
commit 216ef24b92

View File

@ -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()