Skip to content
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

Fix CMP0173 policy warning with cmake 3.31 #110522

Merged
merged 1 commit into from
Jan 11, 2025

Conversation

am11
Copy link
Member

@am11 am11 commented Dec 9, 2024

In some places, where we use find_library(FOUNDATION, we don't include(CMakeFindFrameworks) while in other places we do. These look like added "just in case". CMake 3.31 has deprecated include(CMakeFindFrameworks):

-- Performing Test LINKER_SUPPORTS_UNDEFINED_VERSION - Failed
CMake Warning (dev) at dlls/mscoree/coreclr/CMakeLists.txt:189 (include):
  Policy CMP0173 is not set: The CMakeFindFrameworks module is removed.  Run
  "cmake --help-policy CMP0173" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/homebrew/share/cmake/Modules/CMakeFindFrameworks.cmake:29 (message):
  CMakeFindFrameworks.cmake is not maintained and lacks support for more
  recent framework handling.  It will be removed in a future version of
  CMake.  Update the code to use find_library() instead.
Call Stack (most recent call first):
  dlls/mscoree/coreclr/CMakeLists.txt:189 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done (57.5s)

Lets see if it works warning-free in the CI without the include before resorting to policy oriented fix.

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Dec 9, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Dec 9, 2024
@am11 am11 added area-Infrastructure and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Dec 9, 2024
@am11 am11 marked this pull request as ready for review December 10, 2024 01:04
@akoeplinger
Copy link
Member

/ba-g failures are on linux, this only affects apple targets

@akoeplinger akoeplinger merged commit 0dcffe7 into dotnet:main Jan 11, 2025
152 of 158 checks passed
grendello added a commit to grendello/runtime that referenced this pull request Jan 13, 2025
* main:
  JIT: Model GT_RETURN kills with contained operand (dotnet#111230)
  Update dependencies from https://github.com/dotnet/runtime-assets build 20250110.2 (dotnet#111290)
  [NativeAOT/ARM64] Generate frames compatible with Apple compact unwinding (dotnet#107766)
  Cleanup unused JIT stubs in vm (dotnet#111237)
  Ensure that Shuffle is marked as HW_Flag_CanBenefitFromConstantProp (dotnet#111303)
  Fix CMP0173 policy warning with cmake 3.31 (dotnet#110522)
  [RISC-V] Fix HostActivation.Tests unknown-rid (dotnet#110687)
  Fix accidentally duplicated global-build-step.yml in runtime-official.yml (dotnet#111302)
  JIT: run extra SPMI queries for arrays (dotnet#111293)
  Split the Runtime Shared Framework project and combine legs in the official build (dotnet#111136)
  Do not ignore `MemoryMarshal.TryWrite` result (dotnet#108661)
  Update dependencies from https://github.com/dotnet/emsdk build 20250109.1 (dotnet#111263)
  Clean up in Number.Formatting.cs (dotnet#110955)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Infrastructure community-contribution Indicates that the PR has been added by a community member
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants