[opencv] 80/89: cmake: use -fp-model precise with ICC
Nobuhiro Iwamatsu
iwamatsu at moszumanska.debian.org
Sat May 13 09:57:27 UTC 2017
This is an automated email from the git hooks/post-receive script.
iwamatsu pushed a commit to annotated tag 2.4.13.2
in repository opencv.
commit d206e84a130057cf7b6e7537205c5a96b176ca65
Author: Alexander Alekhin <alexander.alekhin at intel.com>
Date: Thu Nov 24 20:33:56 2016 +0300
cmake: use -fp-model precise with ICC
---
cmake/OpenCVCompilerOptions.cmake | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/cmake/OpenCVCompilerOptions.cmake b/cmake/OpenCVCompilerOptions.cmake
index 06992c2..15523c6 100644
--- a/cmake/OpenCVCompilerOptions.cmake
+++ b/cmake/OpenCVCompilerOptions.cmake
@@ -97,6 +97,10 @@ if(BUILD_TINY_GPU_MODULE)
add_definitions(-DOPENCV_TINY_GPU_MODULE)
endif()
+if(CV_ICC AND NOT ENABLE_FAST_MATH)
+ add_extra_compiler_option("-fp-model precise")
+endif()
+
if(CMAKE_COMPILER_IS_GNUCXX)
# High level of warnings.
add_extra_compiler_option(-W)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git
More information about the debian-science-commits
mailing list