Commit graph

11 commits

Author SHA1 Message Date
Marcus Asteborg
dfd6c88aaa
cmake - add support to run ctest on android #2347
Signed-off-by: Ralph Giles <giles@thaumas.net>
2021-05-12 10:35:00 -07:00
Marcus Asteborg
b83dd52868 cmake - MINGW check for ssp lib and link if security features is enabled 2020-08-08 17:10:51 +00:00
Marcus Asteborg
8ad827c3ff cmake - fix bugs around consuming Opus as a submodule in cmake and package version parsing 2020-08-08 17:10:51 +00:00
Marcus Asteborg
edccc33160 cmake - add warning flags for clang, gcc etc. 2020-08-08 17:10:51 +00:00
Marcus Asteborg
d05a07eab9 Remove trailing whitespaces in vla.c that was missed previously 2020-06-15 22:15:21 -07:00
Davide Beatrici
ce9d83be80
cmake/CFeatureCheck.cmake: fix feature tests failing when Opus is a submodule
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>
2020-06-13 00:21:19 -07:00
Marcus Asteborg
97fca1b339
cmake - add option to disable intrinsics
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-06-13 00:21:15 -07:00
Marcus Asteborg
c350cec965
cmake - move all compiler feature detection to OpusConfig
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-06-13 00:21:11 -07:00
Marcus Asteborg
d00d866e8c
cmake - add include guards to cmake files
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-06-13 00:21:06 -07:00
Marcus Asteborg
48055ccc23
cmake - move cmake related files to cmake folder to make root dir less busy
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2020-06-13 00:20:56 -07:00
Marcus Asteborg
a0e14e7117
cmake - Add variable length detection and alloca detection
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
2020-04-20 22:47:56 -04:00