sim: make the cmake version of hostfs build similar to the Makefile one

This commit is contained in:
YAMAMOTO Takashi 2023-12-29 02:35:58 +09:00 committed by archer
parent 1768e7868b
commit f7fb816235
1 changed files with 2 additions and 1 deletions

View File

@ -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)