From c080770065c4e0ef24863020caf934fd42074105 Mon Sep 17 00:00:00 2001 From: Lennart Date: Fri, 13 Nov 2020 22:49:39 +0100 Subject: [PATCH] Add missing if clause to not build float16 code if the datatype is disabled --- Source/TransformFunctions/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/TransformFunctions/CMakeLists.txt b/Source/TransformFunctions/CMakeLists.txt index 494d9fcc..2a9ef54a 100644 --- a/Source/TransformFunctions/CMakeLists.txt +++ b/Source/TransformFunctions/CMakeLists.txt @@ -119,6 +119,7 @@ target_sources(CMSISDSPTransform PRIVATE arm_rfft_fast_f64.c) target_sources(CMSISDSPTransform PRIVATE arm_rfft_fast_init_f64.c) endif() +if ((NOT DISABLEFLOAT16)) if (NOT CONFIGTABLE OR ALLFFT OR RFFT_FAST_F16_32 OR RFFT_FAST_F16_64 OR RFFT_FAST_F16_128 OR RFFT_FAST_F16_256 OR RFFT_FAST_F16_512 OR RFFT_FAST_F16_1024 OR RFFT_FAST_F16_2048 OR RFFT_FAST_F16_4096 ) @@ -128,6 +129,7 @@ target_sources(CMSISDSPTransform PRIVATE arm_cfft_f16.c) target_sources(CMSISDSPTransform PRIVATE arm_cfft_init_f16.c) target_sources(CMSISDSPTransform PRIVATE arm_cfft_radix8_f16.c) endif() +endif() if (NOT CONFIGTABLE OR ALLFFT OR RFFT_F32_128 OR RFFT_F32_512 OR RFFT_F32_2048 OR RFFT_F32_8192) target_sources(CMSISDSPTransform PRIVATE arm_rfft_init_f32.c)