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
This commit is contained in:
simbit18 2024-12-09 12:07:26 +01:00 committed by Xiang Xiao
parent c8bdfb537e
commit 6b7722cfb4

View file

@ -22,7 +22,7 @@
add_subdirectory(src)
if(NOT MSVC)
if(CONFIG_HOST_LINUX)
add_custom_target(
nuttx_post_build
DEPENDS nuttx