From 43aa62ac56fa01dac302b6d48aeb7bbd09614e8b Mon Sep 17 00:00:00 2001 From: Philippe G Date: Sun, 28 Mar 2021 14:59:07 -0700 Subject: [PATCH] set DEPTH in root CMake for consistency --- CMakeLists.txt | 3 +++ components/squeezelite/CMakeLists.txt | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e3af7e8..6216195c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.5) set(EXTRA_COMPONENT_DIRS components/platform_console/app_recovery components/platform_console/app_squeezelite ) include($ENV{IDF_PATH}/tools/cmake/project.cmake) add_definitions(-DMODEL_NAME=SqueezeESP32) +if(NOT DEFINED DEPTH) + set(DEPTH "16") +endif() message(STATUS "Building RECOVERY") project(recovery) set_property(TARGET recovery.elf PROPERTY RECOVERY_PREFIX app_recovery ) diff --git a/components/squeezelite/CMakeLists.txt b/components/squeezelite/CMakeLists.txt index 61bbc84b..ce1d38f0 100644 --- a/components/squeezelite/CMakeLists.txt +++ b/components/squeezelite/CMakeLists.txt @@ -31,10 +31,6 @@ set_source_files_properties(flac.c add_definitions(-DLINKALL -DLOOPBACK -DNO_FAAD -DEMBEDDED -DTREMOR_ONLY -DCUSTOM_VERSION=${BUILD_NUMBER}) -if(NOT DEFINED DEPTH) - set(DEPTH "16") -endif() - if (${DEPTH} EQUAL "32") add_definitions(-DBYTES_PER_FRAME=8) else()