Fix cmake cmp0175 warnings on cmake 3.31 and higher#1273
Fix cmake cmp0175 warnings on cmake 3.31 and higher#1273salkinium merged 1 commit intomodm-io:developfrom
Conversation
|
as expected most of the problems arise from folder structure. |
|
To get away with the linkerscript on cortex m platforms i use link/linkerscript.ld That fixes my compile issue in my project while keeping the examples working. |
|
I'll skip the directory independance for this pull request and stick to the override option for the linkerskript. |
|
So Point 1 makes sense to me, thanks for updating our CMake to the latest standard! Point 2 is a bit unclear to me. Could you provide the folder structure, maybe using an simplified lbuild/modm has the option to relocate the output path using the It's a fairly niche feature that was introduced in this PR. That was before the CMake generator existed, so not sure if that is properly supported. |
254ac8e to
bafa06a
Compare
|
I switched to using modm:platform:cortex-m:linkerscript.override option option in my project so this contains no path releated stuff anymore accept from the cmake specific stuff. as recomended in the other pr i squashed the commits and rebased on the current release. I hope this is fine for u. |
salkinium
left a comment
There was a problem hiding this comment.
I was able to reproduce this behaviour with cmake v4.0.3 and your commit fixes it!
Thank you!
|
Could you fix your commit message to |
bafa06a to
96444bd
Compare
|
I struggled a bit, but i think this i gona work |
I use cmake 4.0 and gcc 14.2 on my project. the hole cmake build is based on the cmake example project.
What does thid fix?: