Commit graph

9 commits

Author SHA1 Message Date
Marcus Asteborg
84484a6790
CMake - change avx to avx2 and fma 2023-06-16 13:02:29 -04:00
Marcus Asteborg
a80e9e9533
cmake - fix lrintf, lrint detection
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>
2022-07-07 22:01:42 -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
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
Renamed from opus_config.cmake (Browse further)