瀏覽代碼

Make boost static lib an option. (#936)

* Migrate unit tests back to the main repo.

* Minor bug fixes and getting unit test migrated.

* Minor cmake bug for unit tests.

* Make CGAL boost static lib an option.

* Update libigl.cmake

change to ON


Former-commit-id: eb3b18002ea6756ca111c7e4081a1f2f162c79ac
Qingnan Zhou 6 年之前
父節點
當前提交
5977205363
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cmake/libigl.cmake

+ 1 - 1
cmake/libigl.cmake

@@ -195,7 +195,7 @@ if(LIBIGL_WITH_CGAL)
     if(EXISTS ${LIBIGL_EXTERNAL}/boost)
     if(EXISTS ${LIBIGL_EXTERNAL}/boost)
       set(BOOST_ROOT "${LIBIGL_EXTERNAL}/boost")
       set(BOOST_ROOT "${LIBIGL_EXTERNAL}/boost")
     endif()
     endif()
-    set(CGAL_Boost_USE_STATIC_LIBS ON CACHE BOOL "" FORCE)
+    option(CGAL_Boost_USE_STATIC_LIBS "Use static Boost libs with CGAL" ON)
     find_package(CGAL CONFIG COMPONENTS Core PATHS ${CGAL_DIR} NO_DEFAULT_PATH)
     find_package(CGAL CONFIG COMPONENTS Core PATHS ${CGAL_DIR} NO_DEFAULT_PATH)
   endif()
   endif()