acassis commented on PR #19755:
URL: https://github.com/apache/nuttx/pull/19755#issuecomment-5231363494
> What problem exactly does this PR solve? support for add_subdirectory is
not possible with current cmake support in nuttx and supporting this may
require a complete rebuild of cmake build
@raiden00pl with this simple modification we can run the NuttX sim as
external project:
```
$ cat CMakeLists.txt
cmake_minimum_required(VERSION 3.20)
project(NuttXExternal)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../nuttx nuttx_build)
```
This is just the initial step, more modification will be done to support
cross-compiling too. As you said it will be a redesign of CMake build system.
So I want to do it in baby steps
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]