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:
authorMarcus Asteborg <maastebo@microsoft.com>2019-12-17 21:21:21 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2020-01-19 23:51:04 +0300
commit965a72e4c00aae7aa7fb634037585d60df61ba14 (patch)
tree8035181a18c7adc23fb90f6b522acb16cfc8c4d2 /CMakeLists.txt
parentc487f53ca59507d6d511aca4a3edc1d768633d19 (diff)
CMake: Add shared library to features
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f63bf336..bb516213 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,9 +39,10 @@ include(GNUInstallDirs)
include(CMakeDependentOption)
include(FeatureSummary)
-if(OPUS_BUILD_SHARED_LIBRARY)
+if(OPUS_BUILD_SHARED_LIBRARY OR BUILD_SHARED_LIBS)
# Global flag to cause add_library() to create shared libraries if on.
set(BUILD_SHARED_LIBS ON)
+ set(OPUS_BUILD_SHARED_LIBRARY ON)
endif()
if(OPUS_STACK_PROTECTOR)
@@ -122,6 +123,7 @@ set_package_properties(Git
PURPOSE
"required to set up package version")
+add_feature_info(BUILD_SHARED_LIBRARY OPUS_BUILD_SHARED_LIBRARY "Build shared library")
add_feature_info(STACK_PROTECTOR OPUS_STACK_PROTECTOR "Use stack protection")
add_feature_info(USE_ALLOCA OPUS_USE_ALLOCA
"Use alloca for stack arrays (on non-C99 compilers)")