Skip to content

Commit

Permalink
[cmake] Adjust w2dynamics cmake find_package command to match the one…
Browse files Browse the repository at this point in the history
… in TRIQS

- This works around an issue where Python is no longer found with
  find_package(Python REQUIRED COMPONENTS Interpreter Development.Module NumPy)
  after TRIQS has already issued
  find_package(Python REQUIRED COMPONENTS Interpreter Development NumPy)
  • Loading branch information
Wentzell committed Mar 25, 2024
1 parent ed1295d commit 29af943
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions w2dynamics.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 24a3f3b..f0a63c0 100644
index 24a3f3b..2899d85 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,7 +14,7 @@ endif(POLICY CMP0074)
Expand Down Expand Up @@ -27,7 +27,7 @@ index 24a3f3b..f0a63c0 100644
option(USE_NFFT "Compile with support for routines requiring the NFFT library for non-equispaced FFTs" ON)

if (USE_NFFT)
@@ -88,22 +79,6 @@ else ()
@@ -88,30 +79,14 @@ else ()
set(NFFT_LIBRARIES "")
endif ()

Expand All @@ -49,8 +49,9 @@ index 24a3f3b..f0a63c0 100644
-
find_package(
Python
COMPONENTS Interpreter Development.Module NumPy
@@ -111,7 +86,7 @@ find_package(
- COMPONENTS Interpreter Development.Module NumPy
+ COMPONENTS Interpreter Development NumPy
REQUIRED)

# F2PY headers
execute_process(
Expand Down

0 comments on commit 29af943

Please sign in to comment.