Skip to content

Commit 3a85a64

Browse files
committed
Add Python discovery to CMakeLists.txt
1 parent 6bc378d commit 3a85a64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ set(CMAKE_CXX_STANDARD 20)
55
set(CMAKE_CXX_STANDARD_REQUIRED ON)
66
set(CMAKE_CXX_EXTENSIONS OFF)
77

8+
find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)
9+
810
# pybind11
911
include_directories(${CMAKE_SOURCE_DIR}/src)
1012
add_subdirectory(pybind11)

0 commit comments

Comments
 (0)