cmake(bugfix):fix CMake build break on MacOS

report by https://github.com/apache/nuttx/issues/14936

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2024-12-05 22:09:51 +08:00 committed by Xiang Xiao
parent 60fb917eda
commit f2b4ab283f

View file

@ -181,7 +181,7 @@ endif()
if(CONFIG_SIM_M32)
add_compile_options(-m32)
add_link_options(-m32)
elseif(NOT CONFIG_HOST_MACOS)
elseif(NOT APPLE)
add_compile_options(-no-pie)
add_link_options(-Wl,-no-pie)
endif()