Skip to content
Evergreen Evergreen
Documentation

The CMakeFindFrameworks module is deprecated

Deprecated as of 2024-11-06. Replacement: find_library(). Source: CMake 3.31 release notes (CMakeFindFrameworks deprecated).

Check a version:

evergreen check pkg:generic/cmake-module/cmake-find-frameworks

CMake 3.31 deprecated the CMakeFindFrameworks module via policy CMP0173. Projects should use find_library() instead. CMake 3.31.0 was published on 2024-11-06.

Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>

   
Status Deprecated
Severity medium
Ecosystem cpp
Component pkg:generic/cmake-module/cmake-find-frameworks
Affected versions vers:semver/*
Date from the source 2024-11-06
Replacement find_library()
Evidence last seen 2026-10-19
Reviewed 2026-10-19 by arminazimi
Review due 2027-04-17 (180 days after the last review)
Rule ID cpp.cmake.module.cmake-find-frameworks.deprecated

Sources

Migration

Constraints

  • Preserve the framework search paths and the library names the project already expects when rewriting calls to find_library().

Steps

  1. Replace CMakeFindFrameworks with find_library. Remove include(CMakeFindFrameworks) / cmake_find_frameworks() and locate the same frameworks with find_library().

Verification

  • cmake -S . -B build -Wdev: Configure with developer warnings and confirm the CMP0173 deprecation is gone.

Detected by

The cpp detector. See Detectors and Compatibility.

Same ecosystem

Data

This page is generated from registry/cpp.json, rule cpp.cmake.module.cmake-find-frameworks.deprecated, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.

Last updated