diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a0b98a42ef..f1cbd15b0a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +* Silenced `pybind11` CMake message due to using compatibility mode for Python [#2614](https://github.com/IntelPython/dpnp/pull/2614) + ### Deprecated ### Removed diff --git a/CMakeLists.txt b/CMakeLists.txt index 8df985da685..30a3871a4e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,6 +49,9 @@ endif() include(GNUInstallDirs) +# find Python before enabling pybind11 +find_package(Python REQUIRED COMPONENTS Development.Module NumPy) + # Fetch pybind11 include(FetchContent) FetchContent_Declare( @@ -59,8 +62,6 @@ FetchContent_Declare( ) FetchContent_MakeAvailable(pybind11) -find_package(Python REQUIRED COMPONENTS Development.Module NumPy) - set(CYTHON_FLAGS "-t -w \"${CMAKE_SOURCE_DIR}\"") find_package(Cython REQUIRED)