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 0e1b432dd0
commit c3ab69c7f7

View file

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