-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assembling compile_time_choice.S does not respect PICO_BOARD_HEADER_DIRS #2114
Comments
@will-v-pi Would a similar thing also affect #2113 ? |
I don't think so. If it did I would have obtained a failure in CMake before getting to compiling compile_time_choice.S. |
I assumed that you weren't testing #2113 with custom header files in a user-defined Perhaps I should have made the question in my previous comment more explicit: if there's an |
For my first test, the primary board header file was in a user defined location, but the secondary board header file was pico2_w.h in the standard location. That all worked, hence my report of success.
I then went on to do a test with both primary and secondary board header files in a user defined location. I could see from the CMake output that this had correctly picked up the pico_cmake_set declarations from the secondary header file but then failed on compiling compile_time_choice. |
They will still be included by #2113 - it searches all of |
I think you should just use |
Interesting. I had used the
A quick test suggests that omitting the My test is not definitive because I have re-arranged my code to avoid the need of having nested includes, and quickly hacking one back in results in a compilation failure for other causes. But I don't get any "No such file or directory" errors for the nested include file. |
My test was too quick. If the nested include file is in the SDK default directory, then you do have to prefix the file name by the It would be nice if the behaviour was consistent between the two locations. |
A board header file may include another (secondary) header file.
Providing the secondary header file is in pico-sdk/src/boards/include, then everything works.
However if the secondary header file is in a user defined folder, which is specified in PICO_BOARD_HEADER_DIRS, then the compilation of compile_time_choice.S fails:
My user defined directory:
config_autogen.h
The text was updated successfully, but these errors were encountered: