mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
Do not let CMake check the compiler with en executable as the entry point is not always main()
This commit is contained in:
committed by
Xiang Xiao
parent
a75b3bad15
commit
a7d0b6c120
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user