Skip to content

Conversation

@mingyueliuh
Copy link
Contributor

Description

To fix the CMake configuration error when a dependency brought in via FetchContent uses find_package(pybind11 REQUIRED)
Similar with #23939

Major Changes:

  • rename project name from pybind11_project to pybind11

Motivation and Context

Get the following build error when Dependencies use find_package(pybind11 REQUIRED)

Could not find a package configuration file provided by "pybind11" with any
  of the following names:

    pybind11Config.cmake
    pybind11-config.cmake

pybind11 project name is "pybind11" (https://github.com/pybind/pybind11/blob/master/CMakeLists.txt#L38-L41)
Config cmake file name is "pybind11Config.cmake" (https://github.com/pybind/pybind11/blob/master/CMakeLists.txt#L323-L325)

@mingyueliuh mingyueliuh closed this Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant