Do not let CMake check the compiler with en executable as the entry point is not always main()

This commit is contained in:
Philippe Leduc 2023-09-11 15:59:11 +02:00 committed by Xiang Xiao
parent a75b3bad15
commit a7d0b6c120

View File

@ -1,6 +1,8 @@
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
set(NUTTX_PATH ${CMAKE_CURRENT_LIST_DIR}/..)
include(${NUTTX_PATH}/scripts/target.cmake)