浏览代码

enable use of alternate pybind11

Former-commit-id: b7f5342962efd018aad1988d6aff3f0a1be1b308
Daniel Crispell 7 年之前
父节点
当前提交
a254ce32b3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      python/CMakeLists.txt

+ 2 - 1
python/CMakeLists.txt

@@ -23,7 +23,8 @@ if(UNIX)
 endif()
 
 ## 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
 option(LIBIGL_USE_STATIC_LIBRARY "Use LibIGL as static library" OFF)