This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 1d8eab937f1813638df3556a88151d54f63edcde
Author: liqinhui <[email protected]>
AuthorDate: Tue Apr 15 15:07:14 2025 +0800

    simwifi: refactor the interfaces of simwifi and simnet
    
    Fix CMake logic to correctly include sim_wifihost.
    
    Signed-off-by: liqinhui <[email protected]>
---
 arch/sim/src/sim/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/sim/src/sim/CMakeLists.txt b/arch/sim/src/sim/CMakeLists.txt
index a0b26bb3017..875040d5ef0 100644
--- a/arch/sim/src/sim/CMakeLists.txt
+++ b/arch/sim/src/sim/CMakeLists.txt
@@ -213,7 +213,7 @@ if(CONFIG_SIM_X11FB)
   endif()
 endif()
 
-if(CONFIG_SIM_WIFIDEV_HOST)
+if(NOT ${CONFIG_SIM_WIFIDEV_NUMBER} EQUAL 0)
   add_compile_options(-DTOPDIR=$(TOPDIR))
   list(APPEND SRCS sim_wifihost.c)
 endif()

Reply via email to