Skip to content

Modernize target_link_libraries in Cmakelists.txt#1283

Closed
moksiuc wants to merge 3 commits intopytorch:mainfrom
moksiuc:moksiuci_8379_modernize_target_link_libraries
Closed

Modernize target_link_libraries in Cmakelists.txt#1283
moksiuc wants to merge 3 commits intopytorch:mainfrom
moksiuc:moksiuci_8379_modernize_target_link_libraries

Conversation

@moksiuc
Copy link
Copy Markdown
Contributor

@moksiuc moksiuc commented Mar 6, 2026

Provide linking mode explicitely:

target_link_libraries(my_target PUBLIC A)
target_link_libraries(my_target PRIVATE B)
target_link_libraries(my_target INTERFACE C)

Provide linking mode explicitely:

target_link_libraries(my_target PUBLIC A)
target_link_libraries(my_target PRIVATE B)
target_link_libraries(my_target INTERFACE C)
@meta-cla meta-cla bot added the cla signed label Mar 6, 2026
@moksiuc
Copy link
Copy Markdown
Contributor Author

moksiuc commented Mar 6, 2026

@gujinghui @EikanWang

@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Apr 7, 2026

@jiannanWang has imported this pull request. If you are a Meta employee, you can view this in D99889875.

@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Apr 9, 2026

@jiannanWang merged this pull request in 2b26470.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant