Commit graph

2 commits

Author SHA1 Message Date
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
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