projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b31f468
)
Attempt to fix windows build failure
author
Andrey Kamaev
<no@email>
Wed, 11 Apr 2012 08:31:43 +0000
(08:31 +0000)
committer
Andrey Kamaev
<no@email>
Wed, 11 Apr 2012 08:31:43 +0000
(08:31 +0000)
cmake/OpenCVCompilerOptions.cmake
patch
|
blob
|
history
diff --git
a/cmake/OpenCVCompilerOptions.cmake
b/cmake/OpenCVCompilerOptions.cmake
index
6bf1a68
..
8f8bdc7
100644
(file)
--- a/
cmake/OpenCVCompilerOptions.cmake
+++ b/
cmake/OpenCVCompilerOptions.cmake
@@
-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()