From 0f5fc5acc3e6dcbc1030beb8e2661c450bebc35c Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Tue, 23 Jan 2024 00:00:56 +0300 Subject: [PATCH] test: allow double comparison in tests --- code/test/unit/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/test/unit/CMakeLists.txt b/code/test/unit/CMakeLists.txt index 8ff23dae..419eee90 100644 --- a/code/test/unit/CMakeLists.txt +++ b/code/test/unit/CMakeLists.txt @@ -29,6 +29,7 @@ set(COMMON_FLAGS -Dstrnlen_P=strnlen -Dmemcmp_P=memcmp -Dstrncasecmp_P=strncasecmp + -DUNITY_INCLUDE_DOUBLE ) set(ESPURNA_PATH ${CMAKE_SOURCE_DIR}/../../../ CACHE PATH "ESPurna source code repo root") @@ -57,6 +58,7 @@ FetchContent_GetProperties(unitygit SOURCE_DIR) target_compile_options(unity BEFORE PRIVATE -DUNITY_OUTPUT_COLOR + -DUNITY_INCLUDE_DOUBLE ) set(esp8266_version a4a8782c5611c02df3c0dd4744c86d02a4f037d3)