c9bee083e0
Fix the following build failure with BR2_SHARED_STATIC_LIBS: CMake Error at src/CMakeLists.txt:56 (add_library): add_library cannot create target "belr" because another target with the same name already exists. The existing target is a static library created in source directory Fixes: - http://autobuild.buildroot.org/results/d1ef96c8f370b5a522985c37f1681dd10bbc15bb Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [Peter: simplify/add comment explaining why] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
26 lines
696 B
Makefile
26 lines
696 B
Makefile
################################################################################
|
|
#
|
|
# belr
|
|
#
|
|
################################################################################
|
|
|
|
BELR_VERSION = 4.4.8
|
|
BELR_SITE = https://gitlab.linphone.org/BC/public/belr/-/archive/$(BELR_VERSION)
|
|
BELR_LICENSE = GPL-3.0+
|
|
BELR_LICENSE_FILES = LICENSE.txt
|
|
BELR_INSTALL_STAGING = YES
|
|
BELR_DEPENDENCIES = bctoolbox
|
|
BELR_CONF_OPTS = \
|
|
-DENABLE_STRICT=OFF \
|
|
-DENABLE_TESTS=OFF \
|
|
-DENABLE_TOOLS=OFF
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
BELR_CONF_OPTS += -DENABLE_SHARED=OFF -DENABLE_STATIC=ON
|
|
else
|
|
# cannot build static and shared together
|
|
BELR_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|