Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 343dc02

Browse files
committed
cmake: add pybind fetch
1 parent 2fe12fa commit 343dc02

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,23 @@ ENDIF()
1717

1818
INCLUDE(KokkosPythonUtilities) # miscellaneous macros and functions
1919

20+
# fetch latest stable pykokkos and pybind versions
21+
INCLUDE(FetchContent)
22+
# FETCHCONTENT_DECLARE(
23+
# Kokkos
24+
# GIT_REPOSITORY https://github.com/kokkos/kokkos.git
25+
# GIT_TAG develop
26+
# )
27+
# FetchContent_MakeAvailable(Kokkos)
28+
29+
FETCHCONTENT_DECLARE(
30+
pybind11
31+
GIT_REPOSITORY https://github.com/pybind/pybind11.git
32+
GIT_TAG v3.0
33+
)
34+
FetchContent_MakeAvailable(pybind11)
35+
36+
2037
ADD_OPTION(BUILD_SHARED_LIBS "Build shared libraries" ON)
2138
# force to release if not specified
2239
IF("${CMAKE_BUILD_TYPE}" STREQUAL "")

0 commit comments

Comments
 (0)