From a7d0b6c120edf5abb710643c7646849958897a76 Mon Sep 17 00:00:00 2001 From: Philippe Leduc Date: Mon, 11 Sep 2023 15:59:11 +0200 Subject: [PATCH] Do not let CMake check the compiler with en executable as the entry point is not always main() --- tools/toolchain.cmake.export | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/toolchain.cmake.export b/tools/toolchain.cmake.export index 79d2eb8e6bca6..b943f217c0653 100644 --- a/tools/toolchain.cmake.export +++ b/tools/toolchain.cmake.export @@ -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)