Skip to content

Conversation

@ivdiazsa
Copy link
Contributor

@ivdiazsa ivdiazsa commented Oct 3, 2023

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 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
Copy link

ghost commented Oct 3, 2023

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
Copy link
Contributor Author

ivdiazsa commented Oct 3, 2023

/azp run runtime-coreclr outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkoritzinsky
Copy link
Member

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

@ivdiazsa
Copy link
Contributor Author

ivdiazsa commented Oct 4, 2023

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.

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