From e03de809241e32e6c64ec9c2aeb1c77cf0845678 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Mon, 26 Aug 2024 16:07:51 +0200 Subject: [PATCH] depends: release type should be lower case --- contrib/depends/Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/contrib/depends/Makefile b/contrib/depends/Makefile index f612dbffb..c1972d82c 100644 --- a/contrib/depends/Makefile +++ b/contrib/depends/Makefile @@ -25,18 +25,24 @@ host_toolchain:=$(HOST)- endif ifneq ($(DEBUG),) -release_type=Debug +release_type=debug else -release_type=Release +release_type=release endif ifneq ($(TESTS),) build_tests=ON -release_type=Debug +release_type=debug else build_tests=OFF endif +ifeq ($(release_type),debug) +cmake_release_type=Debug +else +cmake_release_type=Release +endif + base_build_dir=$(BASEDIR)/work/build base_staging_dir=$(BASEDIR)/work/staging base_download_dir=$(BASEDIR)/work/download @@ -138,7 +144,7 @@ $(host_prefix)/share/toolchain.cmake : toolchain.cmake.in $(host_prefix)/.stamp_ -e 's|@LDFLAGS@|$(strip $(host_LDFLAGS) $(host_$(release_type)_LDFLAGS))|' \ -e 's|@allow_host_packages@|$(ALLOW_HOST_PACKAGES)|' \ -e 's|@debug@|$(DEBUG)|' \ - -e 's|@release_type@|$(release_type)|' \ + -e 's|@release_type@|$(cmake_release_type)|' \ -e 's|@build_tests@|$(build_tests)|' \ -e 's|@cmake_system_name@|$($(host_os)_cmake_system)|' \ -e 's|@prefix@|$($(host_arch)_$(host_os)_prefix)|'\