summaryrefslogtreecommitdiff
path: root/cmake
Commit message (Collapse)AuthorAgeFilesLines
* Only build platform RTCD sources when enabled.Timothy B. Terriberry2022-07-091-1/+4
| | | | To avoid issues with empty compilation units.
* cmake - fix rtcd detection on x86 non windowsMarcus Asteborg2022-07-073-8/+62
| | | | Signed-off-by: Mark Harris <mark.hsj@gmail.com>
* cmake - fix lrintf, lrint detectionMarcus Asteborg2022-07-071-9/+20
| | | | | | | | | | | | | This commit addresses the issues of not finding lrintf and lrint. We switch to check_symbol_exists instead per cmake documentation. Also make sure to link math lib for detection for nix. For MSVC the issue for non x86 builds was that the standard was set to default which is 199409L. This resulted in not using lrintf even that it was found. To address this we set the C standard to C11 and it will only apply to newer versions of MSVC where the /std flag is supported. Signed-off-by: Mark Harris <mark.hsj@gmail.com>
* cmake - add support to run ctest on android #2347Marcus Asteborg2021-05-121-0/+61
| | | | Signed-off-by: Ralph Giles <giles@thaumas.net>
* cmake - MINGW check for ssp lib and link if security features is enabledMarcus Asteborg2020-08-081-0/+12
|
* cmake - fix bugs around consuming Opus as a submodule in cmake and package ↵Marcus Asteborg2020-08-083-53/+72
| | | | version parsing
* cmake - add warning flags for clang, gcc etc.Marcus Asteborg2020-08-081-0/+12
|
* Remove trailing whitespaces in vla.c that was missed previouslyMarcus Asteborg2020-06-151-4/+4
|
* cmake/CFeatureCheck.cmake: fix feature tests failing when Opus is a submoduleDavide Beatrici2020-06-131-2/+2
| | | | | | | | | | | | | CMAKE_SOURCE_DIR corresponds to the top project's source directory. CMAKE_BINARY_DIR corresponds to the top project's binary directory. The usage of these variables doesn't cause any problems when Opus is built as a standalone project. This is not the case when Opus is added as submodule: the variables are set by the project that calls "add_subdirectory()". The fix consists in using PROJECT_SOURCE_DIR and PROJECT_BINARY_DIR, which always refer to the current project. Signed-off-by: Mark Harris <mark.hsj@gmail.com>
* cmake - add option to disable intrinsicsMarcus Asteborg2020-06-131-3/+5
| | | | Signed-off-by: Mark Harris <mark.hsj@gmail.com>
* cmake - move all compiler feature detection to OpusConfigMarcus Asteborg2020-06-132-8/+10
| | | | Signed-off-by: Mark Harris <mark.hsj@gmail.com>
* cmake - add include guards to cmake filesMarcus Asteborg2020-06-134-5/+18
| | | | Signed-off-by: Mark Harris <mark.hsj@gmail.com>
* cmake - move cmake related files to cmake folder to make root dir less busyMarcus Asteborg2020-06-136-0/+423
| | | | Signed-off-by: Mark Harris <mark.hsj@gmail.com>
* cmake - Add variable length detection and alloca detectionMarcus Asteborg2020-04-202-0/+46
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>