Repository navigation
Add fix for cmake control of CMAKE_BUILD_TYPE only if mbedtls is the root project - #3790
Conversation
…root project Signed-off-by: Peter Toft <peter.toft@dirac.com>
370f853 to
fdf3379
Compare
|
Could you copy the description from the commit message into the description here? |
|
@paul-elliott-arm I have tried to update. Let me know if you suggest changes (or just update). |
|
BTW, if you want this PR, feel free to merge this in at the time it fits your work schedule and release cycle - or tell me so 👍 |
paul-elliott-arm
left a comment
There was a problem hiding this comment.
This looks good to me
|
@paul-elliott-arm two questions;
|
|
|
@paul-elliott-arm others that can review? |
Its on the board in the right place, I am afraid we will need to wait for people to get the time to review it. Given its only a small patch, hopefully this won't take too long. |
d3zd3z
left a comment
There was a problem hiding this comment.
This is typically how this is done in CMake for other projects.
paul-elliott-arm
left a comment
There was a problem hiding this comment.
I am happy with this too, it makes sense from my understanding.
|
The failure in pr-merge is a network glitch. Since the same job passed in earlier runs with the same content, this is as good as a pass. |
The current CMakeLists.txt has problems when making integration to other projects also running cmake.
The current code traverses the CMAKE_BUILD_TYPE to the mother project, which can be anything - thus clearly problematic.
Especially if the mother project has their own sanitizers setup the current code invalidates that from the mother project.
With the patch the code will let the project using mbedtls control the build types.
Solves: #3789
Signed-off-by: peter-toft-greve