Fix conditional compilation issues.

Fixed include directory settings and conditional includes in CMakeLists and test_common.c. Refs #1085.
This commit is contained in:
2025-09-04 18:23:05 +03:00
parent 86cc29a33b
commit 61ca2197e1
2 changed files with 5 additions and 2 deletions

View File

@@ -3,7 +3,8 @@ set(srcs "test_common.c"
"test_relay_chn_notify_common.c"
"test_app_main.c")
set(incdirs ".")
set(incdirs "."
"../../private_include")
# === Selective compilation based on channel count ===
if(CONFIG_RELAY_CHN_COUNT GREATER 1)
@@ -23,7 +24,6 @@ if(CONFIG_RELAY_CHN_ENABLE_TILTING)
endif()
if(CONFIG_RELAY_CHN_ENABLE_NVS)
list(APPEND incdirs "../../private_include")
list(APPEND srcs "../../src/relay_chn_nvs.c")
if(CONFIG_RELAY_CHN_COUNT GREATER 1)
list(APPEND srcs "test_relay_chn_nvs_multi.c")