Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
Opus
Commits
c5c986a3
Verified
Commit
c5c986a3
authored
4 years ago
by
Marcus Asteborg
Committed by
Jean-Marc Valin
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cmake - add option for float_approx for IEEE 754 compatible targets
Signed-off-by:
Jean-Marc Valin
<
jmvalin@jmvalin.ca
>
parent
a0e14e71
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+9
-0
9 additions, 0 deletions
CMakeLists.txt
with
9 additions
and
0 deletions
CMakeLists.txt
+
9
−
0
View file @
c5c986a3
...
...
@@ -30,6 +30,9 @@ option(OPUS_FIXED_POINT
option
(
OPUS_ENABLE_FLOAT_API
"Compile with the floating point API (for machines with float library"
ON
)
option
(
OPUS_FLOAT_APPROX
"Enable floating point approximations (Ensure your platform supports IEEE 754 before enabling)"
OFF
)
option
(
OPUS_INSTALL_PKG_CONFIG_MODULE
"Install PkgConfig module"
ON
)
option
(
OPUS_INSTALL_CMAKE_CONFIG_MODULE
"Install CMake package config module"
ON
)
...
...
@@ -171,6 +174,8 @@ add_feature_info(
add_feature_info
(
OPUS_FLOAT_API OPUS_ENABLE_FLOAT_API
"compile with the floating point API (for machines with float library)"
)
add_feature_info
(
OPUS_FLOAT_APPROX OPUS_FLOAT_APPROX
"Enable floating point approximations (Ensure your platform supports IEEE 754 before enabling)"
)
add_feature_info
(
OPUS_INSTALL_PKG_CONFIG_MODULE OPUS_INSTALL_PKG_CONFIG_MODULE
"install PkgConfig module"
)
add_feature_info
(
OPUS_INSTALL_CMAKE_CONFIG_MODULE OPUS_INSTALL_CMAKE_CONFIG_MODULE
...
...
@@ -234,6 +239,10 @@ if(NOT MSVC)
target_compile_definitions
(
opus PRIVATE _FORTIFY_SOURCE=2
)
endif
()
if
(
OPUS_FLOAT_APPROX
)
target_compile_definitions
(
opus PRIVATE FLOAT_APPROX
)
endif
()
if
(
OPUS_VAR_ARRAYS
)
target_compile_definitions
(
opus PRIVATE VAR_ARRAYS
)
elseif
(
OPUS_USE_ALLOCA
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment