-
Notifications
You must be signed in to change notification settings - Fork 8k
Update project.cmake (requires cmake >= 3.30) (IDFGH-16578) #17696
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
base: master
Are you sure you want to change the base?
Conversation
👋 Hello franz-ms-muc, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
|
I'm not sure we will be able to integrate this functionality when currently esp-idf minimum required cmake version is 3.22 and this feature was added in cmake 3.30 |
|
it seems i found another Solution: |
|
Hello @franz-ms-muc , I haven't tried it, but I think you might get into the same deduplication problem if more components use this approach. Meaning grouping multiple libs inside the I've been thinking a little bit more about the possibility of enabling the if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.24")
if("${IDF_TARGET}" STREQUAL "linux" AND CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
set(CMAKE_LINK_LIBRARY_USING_WHOLE_ARCHIVE "LINKER:-force_load"
"<LINK_ITEM>")
else()
set(CMAKE_LINK_LIBRARY_USING_WHOLE_ARCHIVE "LINKER:--whole-archive"
"<LINK_ITEM>"
"LINKER:--no-whole-archive")
endif()
set(CMAKE_LINK_LIBRARY_USING_WHOLE_ARCHIVE_SUPPORTED TRUE)
set(CMAKE_LINK_LIBRARY_WHOLE_ARCHIVE_ATTRIBUTES LIBRARY_TYPE=STATIC DEDUPLICATION=YES OVERRIDE=DEFAULT)
endif()Thank you. |
Description
enable Syntax:
target_link_libraries(forte PUBLIC $<LINK_LIBRARY:WHOLE_ARCHIVE,forte-iec61131-3>)and similar.
Related
#17694
#14275