-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Alternative configuration files in CMake #4496
Comments
Hi @marekmosna ! I would like to take you up on that offer for a PR on this issue if you are happy to make it? It would give us a chance to properly see what change(s) you want and then make a proper decision regarding merging it into the repository. Thanks a lot for your interest! |
Note that not all compilers support defining |
Hello guys, please apologize my late response but job is job and money is money. I can propose 2 different approaches how we can improve the custom configuration file for mbedtls.
Let me know your opinions. |
We already have part of (2): in addition to The advantage of making the file name configurable is that you can make different build trees with different configuration files, by using different In any case the cmakefiles don't have any particular support for this, you have to pass |
I see. Ok so I show you what I was forced to do to support custom configuration on arm platform and maybe you just point me to the right direction. The application CMakeLists.txt contains such a code add_custom_target( but unfortunately because of the Linux build I was forced to modify your CMakelists.txt such way: `set(CUSTOM_COMPILE_OPTIONS if(CUSTOM_COMPILE_OPTIONS) |
I'm sorry, I know very little about cmake. Some other maintainers know a bit more and may have an idea. It might be worth asking on the mailing list to see if other people have run into the same issue and how they resolved it. |
Noting that this will be addressed by #6914. |
Enhancement / Feature Request
Suggested enhancement
Set the default value of MBEDTLS_CONFIG_FILE in the CMakeLists.txt and pass it to the build as compile flag
Justification - why does the library need this feature?
When you try to build the mbedtls as standalone library without any changes in the origin sources, you have to pass your own config file into the building process. Because there is no reference in the origin CMakeLists.txt at all, the CMake print out the warning about unused variable and do not pass it to the compilation as you are expecting.
Personally, I was forced to pass this parameter as a part of CMAKE_C_FLAGS which I find as pretty dirty solution.
I can make a pull request when you consider it as wanted enhancement(it can be even marked as the bug regarding to the how to configure document).
The text was updated successfully, but these errors were encountered: