Skip to content

Commit bf68438

Browse files
authored
Merge pull request #2162 from IntelPython/resolve-cmake-warning-module-development
Resolve pybind11 CMake message
2 parents cd0513f + 0e46b4b commit bf68438

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ install(DIRECTORY
114114
FILES_MATCHING REGEX "\\.h(pp)?$"
115115
)
116116

117+
# find Python before enabling pybind11
118+
find_package(Python REQUIRED COMPONENTS Development.Module)
119+
117120
# Define CMAKE_INSTALL_xxx: LIBDIR, INCLUDEDIR
118121
include(GNUInstallDirs)
119122

dpctl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
find_package(Python REQUIRED COMPONENTS Development.Module NumPy)
1+
find_package(Python REQUIRED COMPONENTS NumPy)
22

33
# -t is to only Cythonize sources with timestamps newer than existing CXX files (if present)
44
# -w is to set working directory (and correctly set __pyx_f[] array of filenames)

0 commit comments

Comments
 (0)