Attempt to fix windows build failure
authorAndrey Kamaev <no@email>
Wed, 11 Apr 2012 08:31:43 +0000 (08:31 +0000)
committerAndrey Kamaev <no@email>
Wed, 11 Apr 2012 08:31:43 +0000 (08:31 +0000)
cmake/OpenCVCompilerOptions.cmake

index 6bf1a68..8f8bdc7 100644 (file)
@@ -30,7 +30,9 @@ 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(NOT MSVC_VERSION LESS 1400)
+    set(OPENCV_EXTRA_C_FLAGS "${OPENCV_EXTRA_C_FLAGS} /bigobj")
+  endif()
   if(BUILD_WITH_DEBUG_INFO)
     set(OPENCV_EXTRA_C_FLAGS_RELEASE "${OPENCV_EXTRA_C_FLAGS_RELEASE} /Zi")
   endif()