diff --git a/tools/toolchain.cmake.export b/tools/toolchain.cmake.export index 79d2eb8e6b..b943f217c0 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)