zyy37 opened a new issue, #19697:
URL: https://github.com/apache/nuttx/issues/19697
### Description / Steps to reproduce the issue
For the convenience of project expansion, I placed nuttx in a third-party
library and set it in the following directory `~/dev/proj/third_party/nuttx`.
When I imported nuttx into the main project's CMakeLists.txt through
`add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/third_party/nuttx")` to build, I
found an error. The command is `cd ~/dev/proj && cmake -B build
-DBOARD_CONFIG=/home/ubuntu/dev/proj/third_party/nuttx/boards/sim/sim/sim/configs/nsh`.
It may be a problem with your path handling, such as fixed writing, etc. For
example, your build directory is `~/dev/proj/build`, and the 375th line of your
CMakeLists.txt is written as `set(ENV{KCONFIG_CONFIG}
${CMAKE_BINARY_DIR}/.config)`, which should be `CMAKE_CURRENT_BINARY_DIR`. Most
projects can be built through `add_subdirectory`, I hope you can fix it. Thank
you.
### On which OS does this issue occur?
[OS: Linux]
### What is the version of your OS?
24.04.1-Ubuntu
### NuttX Version
7fc26f
### Issue Architecture
[Arch: simulator]
### Issue Area
[Area: Build System]
### Host information
_No response_
### Verification
- [x] I have verified before submitting the report.
--
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]