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


The following commit(s) were added to refs/heads/master by this push:
     new c3ab69c7f7 build(CMAKE): fix pac sim elf ONLY in Linux platform
c3ab69c7f7 is described below

commit c3ab69c7f71d582ff2d409c565600cbb117c27e7
Author: simbit18 <[email protected]>
AuthorDate: Mon Dec 9 12:07:26 2024 +0100

    build(CMAKE): fix pac sim elf ONLY in Linux platform
    
    avoid SIM compilation post build issues on other platforms
    
    same fix for build with make
    https://github.com/apache/nuttx/pull/14800
---
 boards/sim/sim/sim/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/boards/sim/sim/sim/CMakeLists.txt 
b/boards/sim/sim/sim/CMakeLists.txt
index 8f49981914..5e1c6cf2e4 100644
--- a/boards/sim/sim/sim/CMakeLists.txt
+++ b/boards/sim/sim/sim/CMakeLists.txt
@@ -22,7 +22,7 @@
 
 add_subdirectory(src)
 
-if(NOT MSVC)
+if(CONFIG_HOST_LINUX)
   add_custom_target(
     nuttx_post_build
     DEPENDS nuttx

Reply via email to