Skip to content

Commit

Permalink
Make buildable.
Browse files Browse the repository at this point in the history
  • Loading branch information
KerstinKeller committed Jul 1, 2024
1 parent 4d1834a commit a2986dc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@
url = https://github.com/eclipse-ecal/ecaludp.git
[submodule "thirdparty/nanobind/nanobind"]
path = thirdparty/nanobind/nanobind
url = https://github.com/wjakob/nanobind.git
url = https://github.com/KerstinKeller/nanobind.git
2 changes: 2 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
"cacheVariables": {
"HAS_HDF5": "ON",
"BUILD_PY_BINDING": "ON",
"BUILD_APPS": "OFF",
"BUILD_SAMPLES": "OFF",
"BUILD_SHARED": "OFF",
"ECAL_THIRDPARTY_BUILD_HDF5": "ON"
}
Expand Down
6 changes: 4 additions & 2 deletions thirdparty/nanobind/build-nanobind.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
include_guard(GLOBAL)

message(STATUS "building nanobind")

if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.25.0")
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/nanobind EXCLUDE_FROM_ALL SYSTEM)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/nanobind thirdparty/nanobind EXCLUDE_FROM_ALL SYSTEM)
else ()
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/nanobind EXCLUDE_FROM_ALL)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/nanobind thirdparty/nanobind EXCLUDE_FROM_ALL)
endif ()
2 changes: 1 addition & 1 deletion thirdparty/nanobind/nanobind

0 comments on commit a2986dc

Please sign in to comment.