From f7fb816235bf81247fa8841a0bc4cf623518ba72 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 29 Dec 2023 02:35:58 +0900 Subject: [PATCH] sim: make the cmake version of hostfs build similar to the Makefile one --- arch/sim/src/sim/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/sim/src/sim/CMakeLists.txt b/arch/sim/src/sim/CMakeLists.txt index 505d4aa63c..a01d685edf 100644 --- a/arch/sim/src/sim/CMakeLists.txt +++ b/arch/sim/src/sim/CMakeLists.txt @@ -229,9 +229,10 @@ list(APPEND HOST_DEFINITIONS CONFIG_NAME_MAX=${CONFIG_NAME_MAX}) configure_file(${NUTTX_DIR}/include/nuttx/fs/hostfs.h ${CMAKE_CURRENT_BINARY_DIR}/hostfs.h COPYONLY) +configure_file(${CMAKE_BINARY_DIR}/include/nuttx/config.h + ${CMAKE_CURRENT_BINARY_DIR}/config.h COPYONLY) target_include_directories(nuttx PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) -target_include_directories(nuttx PRIVATE ${CMAKE_BINARY_DIR}/include/nuttx) target_include_directories(nuttx PRIVATE ${CMAKE_CURRENT_LIST_DIR}) target_include_directories(sim_head PUBLIC ${NUTTX_DIR}/sched)