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
94b68f34
Verified
Commit
94b68f34
authored
5 years ago
by
Nathaniel R. Lewis
Committed by
Jean-Marc Valin
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cmake - Add support for detecting the presence of lrint and lrintf.
Signed-off-by:
Jean-Marc Valin
<
jmvalin@jmvalin.ca
>
parent
e7806451
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+5
-0
5 additions, 0 deletions
CMakeLists.txt
opus_config.cmake
+4
-0
4 additions, 0 deletions
opus_config.cmake
with
9 additions
and
0 deletions
CMakeLists.txt
+
5
−
0
View file @
94b68f34
...
...
@@ -314,6 +314,11 @@ if(COMPILER_SUPPORT_NEON AND OPUS_USE_NEON)
endif
()
endif
()
target_compile_definitions
(
opus
PRIVATE
$<$<BOOL:
${
HAVE_LRINT
}
>:HAVE_LRINT>
$<$<BOOL:
${
HAVE_LRINTF
}
>:HAVE_LRINTF>
)
install
(
TARGETS opus
EXPORT OpusTargets
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
...
...
This diff is collapsed.
Click to expand it.
opus_config.cmake
+
4
−
0
View file @
94b68f34
...
...
@@ -16,6 +16,10 @@ if(HAVE_LIBM)
list
(
APPEND OPUS_REQUIRED_LIBRARIES m
)
endif
()
include
(
CheckFunctionExists
)
check_function_exists
(
lrintf HAVE_LRINTF
)
check_function_exists
(
lrint HAVE_LRINT
)
if
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"(i[0-9]86|x86|X86|amd64|AMD64|x86_64)"
)
if
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
set
(
OPUS_CPU_X64 1
)
...
...
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