Sayed Adel
788d6a7105
cmake: Disable -Wsuggest-override option in case of using PCH #11433
7 years ago
Alexander Alekhin
ef2548778c
build: -Wimplicit-fallthrough warning for GCC 7+ only
7 years ago
Alexander Alekhin
12e8e33144
build: enable -Wimplicit-fallthrough warning for OpenCV modules
7 years ago
Alexander Alekhin
0ede1b5b22
cmake: enable override warnings (requires C++11 compilation mode)
7 years ago
Alexander Alekhin
08941b7890
cmake: avoid amending of CMAKE_COMPILER_IS_[GNUCXX|CLANGCXX|CCACHE] vars
...
- Recommended compiler checks:
- GCC: CV_GCC
- Clang: CV_CLANG
- fixed problem with CMAKE_CXX_COMPILER_ID=Clang/AppleClang mess on MacOSX
Details: cmake --help-policy CMP0025
- do not declare Clang as GCC compiler
7 years ago
Alexander Alekhin
95014f311d
cmake: debug info
7 years ago
Alexander Alekhin
65ba2e0adf
cmake: update adding of extra compiler flags
...
Read flags from 'cache' instead of resetting them
7 years ago
luz.paz
413fba14ab
Some mist. typo fixes
...
Found via `codespell -i 3 -w --skip="./3rdparty" -I ../opencv-whitelist.txt`
7 years ago
Maksim Shabunin
60f1c9dcdf
Do not enable LTO flags for MSVC debug configuration
7 years ago
Maksim Shabunin
c0ae812aa2
Add ThinLTO support for clang
7 years ago
Tomoaki Teshima
fe7b3f1228
clean up the code
...
* disable the warning in CMake, not int the code using pragma
7 years ago
Maksim Shabunin
38c62f6461
Added option to disable gc-sections flag
7 years ago
Pavel Rojtberg
6fb9d42c3f
Hid symbols in static builds, added LTO flags, removed exports from ts
7 years ago
Maksim Shabunin
7eb1065944
Fixed/disabled warnings produced by GCC 7
7 years ago
Alexander Alekhin
f7913e2c84
build: eliminate Xcode 9.1 warnings
...
- 3rdparty/libjasper/jas_getopt.c:129:25: warning: this function declaration is not a prototype [-Wstrict-prototypes]
- clang: warning: optimization flag '-fomit-frame-pointer' is not supported for target 'armv7' [-Wignored-optimization-argument]
7 years ago
Alexander Alekhin
43e4e1b624
cmake: drop amending of compilation options
...
Allow to specify optimization level via CMake.
7 years ago
Alexander Alekhin
db980b0eca
cmake: fix '-fvisibility' options regression
...
CMAKE_COMPILER_ID => CMAKE_CXX_COMPILER_ID
7 years ago
Vladislav Sovrasov
32bf712102
cmake: disable implicit-fallthrough by default
7 years ago
Alexander Alekhin
f694192878
cmake: use CMAKE_CXX_COMPILER_VERSION (CMake 2.8.8+)
...
- '-fvisibility' flag was updated
- PVAPI library detection was changed
7 years ago
Tomoaki Teshima
14b76a5bca
suppress warnings on Visual Studio 2013 and earlier
7 years ago
Alexander Alekhin
1516103a15
cmake: fix compiler flags
7 years ago
neok-m4700
c2e281f8cf
Update OpenCVCompilerOptions.cmake
...
misplaced else
7 years ago
jqly
444593014f
a fix for open issue 4772
8 years ago
Maksim Shabunin
32d4af36e2
Fixing some static analysis issues
8 years ago
Alexander Alekhin
1961bb1857
cmake: add ENABLE_BUILD_HARDENING option
8 years ago
Alexander Alekhin
e5d9b608c4
cmake: fix fp16 support
8 years ago
Alexander Alekhin
69df0eee77
cmake: fix try_compile() with --coverage flags
8 years ago
Alexander Alekhin
e16227b53c
cmake: support multiple CPU targets
8 years ago
Alexander Alekhin
0e4dde1781
Merge pull request #7872 from alalek:merge-2.4
8 years ago
Alexander Alekhin
041502e42c
build: eliminate ICC warnings
8 years ago
Alexander Alekhin
ceb5210bfb
build: eliminate ICC PCH warning
8 years ago
Alexander Alekhin
dbbbad40fb
build: eliminate ICC warnings
8 years ago
Alexander Alekhin
3fc06f14d4
cmake: use -fp-model precise with ICC
8 years ago
Alexander Alekhin
d206e84a13
cmake: use -fp-model precise with ICC
8 years ago
Alexander Alekhin
26fbaada0a
cmake: disable warning C4127 for MSVS < 2015
8 years ago
Alexander Alekhin
a3bfa6f566
cmake: ccache
8 years ago
Maksim Shabunin
21167b1bf1
Fixed several GCC 5.x warnings
8 years ago
Alexander Alekhin
14d2046f80
cmake: ccache
8 years ago
Alexander Alekhin
4c8d25878b
cmake: update configuration for iOS
8 years ago
Tomoaki Teshima
c7cb116dc0
check FP16 build condition correctly
...
* use __GNUC_MINOR__ in correct place to check the version of GCC
* check processor support of FP16 at run time
* check compiler support of FP16 and pass correct compiler option
* rely on ENABLE_AVX on gcc since AVX is generated when mf16c is passed
* guard correctly using ifdef in case of various configuration
* use v_float16x4 correctly by including the right header file
8 years ago
Alexander Alekhin
d855608e6e
instrumentation: fix build on Linux
...
- enable C++11
- fix macro
8 years ago
Maksim Shabunin
dc704d77ac
Fixed several GCC 5.x warnings
8 years ago
Alexander Alekhin
fde4e8fed9
cmake: add /usr/local/lib on Apple platform
8 years ago
Alexander Alekhin
2ec63e4dd1
fix android pack build
8 years ago
Tomoaki Teshima
d5179b8218
let the test Video_AccSquared.accuracy pass on linux x64 debug
9 years ago
Tomoaki Teshima
addb15383a
fix run time error
9 years ago
Tomoaki Teshima
15f8bc6f37
fix cmake
...
* enable fp16 feature correctly with gcc on x86/x86_64
9 years ago
Tomoaki Teshima
b2ad7cd9c0
add feature to convert FP32(float) to FP16(half)
...
* check compiler support
* check HW support before executing
* add test doing round trip conversion from / to FP32
* treat array correctly if size is not multiple of 4
* add declaration to prevent warning
* make it possible to enable fp16 on 32bit ARM
* let the conversion possible on non-supported HW, too.
* add test using both HW and SW implementation
9 years ago
Maksim Shabunin
f49936a849
Fixed cmake and build issues when using Visual Studio 2015
9 years ago
Maksim Shabunin
6e9d0d9a0c
Visual Studio 2015 warning and test fixes
9 years ago