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:
authorDavide Beatrici <git@davidebeatrici.dev>2020-05-28 11:53:18 +0300
committerMark Harris <mark.hsj@gmail.com>2020-06-13 10:21:19 +0300
commitce9d83be806941d48dc37034c0c6522a4bf09bb6 (patch)
tree2c3d735394e863878bdea393462aef85d28fb48e /CMakeLists.txt
parent97fca1b3392c4144891b92d2a8c1a27389048873 (diff)
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>
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions