Skip to content

Replace CMake Object Interfaces with CMake 3.20 Objects - #92966

Merged
ivdiazsa merged 1 commit into
dotnet:mainfrom
ivdiazsa:cmake-objects-and-bookies
Oct 4, 2023
Merged

ivdiazsa merged 1 commit into
dotnet:mainfrom
ivdiazsa:cmake-objects-and-bookies

Conversation

@ivdiazsa

@ivdiazsa ivdiazsa commented Oct 3, 2023

Copy link
Copy Markdown
Contributor

Resolves #92787. Now that we have set 3.20 as the minimum version of CMake in the repo, we no longer need to separate OBJECT and INTERFACE targets in the CMakeLists.txt files. This PR removes said INTERFACE targets, and adjusts the OBJECT ones accordingly, in order to take advantage of 3.20's ability to link directly to object libraries with target_link_libraries().

regular objects, as with CMake 3.20, we no longer need to go through
the full interfaces path.
@ivdiazsa ivdiazsa added the area-Infrastructure-coreclr Only use for closed issues label Oct 3, 2023
@ivdiazsa ivdiazsa added this to the 9.0.0 milestone Oct 3, 2023
@ivdiazsa
ivdiazsa requested a review from jkoritzinsky October 3, 2023 20:29
@ghost ghost assigned ivdiazsa Oct 3, 2023
@ghost

ghost commented Oct 3, 2023

Copy link
Copy Markdown

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

Issue Details

Resolves #92787. Now that we have set 3.20 as the minimum version of CMake in the repo, we no longer need to separate OBJECT and INTERFACE targets in the CMakeLists.txt files. This PR removes said INTERFACE targets, and adjusts the OBJECT ones accordingly, in order to take advantage of 3.20's ability to link directly to object libraries with target_link_libraries().

Author: ivdiazsa
Assignees: -
Labels:

area-Infrastructure-coreclr

Milestone: 9.0.0

@ivdiazsa

ivdiazsa commented Oct 3, 2023

Copy link
Copy Markdown
Contributor Author

/azp run runtime-coreclr outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@jkoritzinsky

Copy link
Copy Markdown
Member

The CG2 failures in the outerloop are unrelated. I'll take a look separately.

@ivdiazsa

ivdiazsa commented Oct 4, 2023

Copy link
Copy Markdown
Contributor Author

Merging this now since failures are unrelated and are being addressed in another PR.

@ivdiazsa
ivdiazsa merged commit a166bb7 into dotnet:main Oct 4, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Nov 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Infrastructure-coreclr Only use for closed issues

Projects

Development

Successfully merging this pull request may close these issues.

Remove the _obj suffix on our CMake targets and remove the "interface" targets now that target_link_libraries can link to object libraries.

2 participants