Skip to content

Commit

Permalink
Do not let CMake check the compiler with en executable as the entry p…
Browse files Browse the repository at this point in the history
…oint is not always main()
  • Loading branch information
Philippe Leduc authored and xiaoxiang781216 committed Sep 11, 2023
1 parent a75b3ba commit a7d0b6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/toolchain.cmake.export
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit a7d0b6c

Please sign in to comment.