Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
af00cd5b
Commit
af00cd5b
authored
Jul 07, 2011
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disabled -ffast-math in the case of GCC 4.6.x (ticket #1201)
parent
c3ef6e86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
CMakeLists.txt
CMakeLists.txt
+6
-1
No files found.
CMakeLists.txt
View file @
af00cd5b
...
...
@@ -361,7 +361,12 @@ if(CMAKE_COMPILER_IS_GNUCXX)
if
(
X86 OR X86_64
)
# enable everything, since the available set of instructions is checked at runtime
set
(
USE_FAST_MATH ON CACHE BOOL
"Enable -ffast-math"
)
IF
(
"
${
CMAKE_GCC_REGEX_VERSION
}
"
VERSION_GREATER 4.6.-1
)
SET
(
_USE_FAST_MATH OFF
)
ELSE
()
SET
(
_USE_FAST_MATH ON
)
ENDIF
()
set
(
USE_FAST_MATH
${
_USE_FAST_MATH
}
CACHE BOOL
"Enable -ffast-math (not recommended for GCC 4.6.x)"
)
set
(
ENABLE_SSE ON CACHE BOOL
"Enable SSE instructions"
)
set
(
ENABLE_SSE2 ON CACHE BOOL
"Enable SSE2 instructions"
)
set
(
ENABLE_SSE3 OFF CACHE BOOL
"Enable SSE3 instructions"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment