Pārlūkot izejas kodu

enable use of alternate pybind11

Former-commit-id: b7f5342962efd018aad1988d6aff3f0a1be1b308
Daniel Crispell 7 gadi atpakaļ
vecāks
revīzija
a254ce32b3
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      python/CMakeLists.txt

+ 2 - 1
python/CMakeLists.txt

@@ -23,7 +23,8 @@ if(UNIX)
 endif()
 endif()
 
 
 ## include pybind
 ## include pybind
-add_subdirectory(${PROJECT_SOURCE_DIR}/../external/nanogui/ext/pybind11 pybind11)
+set(PYBIND11_DIR ${PROJECT_SOURCE_DIR}/../external/nanogui/ext/pybind11 CACHE PATH "Path to pybind11")
+add_subdirectory(${PYBIND11_DIR} pybind11)
 
 
 ## include libigl
 ## include libigl
 option(LIBIGL_USE_STATIC_LIBRARY "Use LibIGL as static library" OFF)
 option(LIBIGL_USE_STATIC_LIBRARY "Use LibIGL as static library" OFF)