]>
Commit | Line | Data |
---|---|---|
b60c12b0 MK |
1 | diff -ur OpenCV-2.4.2.orig//cmake/OpenCVCompilerOptions.cmake OpenCV-2.4.2/cmake/OpenCVCompilerOptions.cmake |
2 | --- OpenCV-2.4.2.orig//cmake/OpenCVCompilerOptions.cmake 2012-07-09 23:40:12.980147858 +0000 | |
3 | +++ OpenCV-2.4.2/cmake/OpenCVCompilerOptions.cmake 2012-07-09 23:46:59.773180868 +0000 | |
4 | @@ -47,6 +47,8 @@ | |
5 | endif() | |
6 | endmacro() | |
b94dd30c | 7 | |
b60c12b0 | 8 | +add_extra_compiler_option(-D__STDC_CONSTANT_MACROS) |
b94dd30c | 9 | + |
b60c12b0 MK |
10 | if(MINGW) |
11 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40838 | |
12 | # here we are trying to workaround the problem | |
13 | @@ -105,10 +107,6 @@ | |
14 | add_extra_compiler_option(-Werror) | |
15 | endif() | |
8b9f61f7 | 16 | |
b60c12b0 MK |
17 | - if(X86 AND NOT MINGW64 AND NOT X86_64 AND NOT APPLE) |
18 | - add_extra_compiler_option(-march=i686) | |
19 | - endif() | |
8b9f61f7 | 20 | - |
b60c12b0 MK |
21 | # Other optimizations |
22 | if(ENABLE_OMIT_FRAME_POINTER) | |
23 | add_extra_compiler_option(-fomit-frame-pointer) |