From 2ec4c598299e45e8119cb3ecdd29d6396e4e1e29 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 8 Oct 2025 11:06:08 +0200 Subject: [PATCH 1/3] Resolve a cmake warning --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) From 77dc87359786955c3afde12854823b0b0cd87ea5 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 8 Oct 2025 13:11:28 +0200 Subject: [PATCH 2/3] Add PR to the changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a0b98a42ef..d1b8c8b9203 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 From 2f5a7775af27f0f807dad9d3d2de8a9d784114f4 Mon Sep 17 00:00:00 2001 From: Anton <100830759+antonwolfy@users.noreply.github.com> Date: Wed, 8 Oct 2025 13:48:12 +0200 Subject: [PATCH 3/3] Update CHANGELOG.md Co-authored-by: vlad-perevezentsev --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1b8c8b9203..f1cbd15b0a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ 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) +* Silenced `pybind11` CMake message due to using compatibility mode for Python [#2614](https://github.com/IntelPython/dpnp/pull/2614) ### Deprecated