浏览代码

Merge pull request #656 from decrispell/alt_pybind11

enable use of alternate pybind11

Former-commit-id: 7a54145cc8452b1024bb2657a3c799a9f7623aea
Daniele Panozzo 7 年之前
父节点
当前提交
1d34b8ebf9
共有 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)