Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathaniel R. Lewis <linux.robotdude@gmail.com>2019-05-10 07:38:14 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2020-04-21 05:47:55 +0300
commit94b68f341cadd5433a10d346c1c248a641d8be57 (patch)
tree4a3f44eedd1c47619b88840180325e233121b439 /CMakeLists.txt
parente780645120a3bf3e04d4eb6c6c06194ed6505429 (diff)
cmake - Add support for detecting the presence of lrint and lrintf.
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1fd40e74..3d147075 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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}