Эх сурвалжийг харах

Update cmake.

Former-commit-id: c80da2902fd01add9f4e769b5368d55c2df9fb48
Jérémie Dumas 6 жил өмнө
parent
commit
340521757c

+ 1 - 0
.gitignore

@@ -33,6 +33,7 @@ external/mpfr
 external/boost
 external/.cache
 external/build
+external/pybind11
 .DS_Store
 libigl.zip
 *tags

+ 1 - 1
cmake/LibiglDownloadExternal.cmake

@@ -17,7 +17,7 @@ endfunction()
 ## CGAL
 function(igl_download_cgal)
 	igl_download_project(cgal
-		GIT_REPOSITORY https://github.com/libigl/cgal.git
+		GIT_REPOSITORY https://github.com/CGAL/cgal.git
 		GIT_TAG        f7c3c8212b56c0d6dae63787efc99093f4383415
 	)
 endfunction()

+ 4 - 4
python/CMakeLists.txt

@@ -23,10 +23,6 @@ if(UNIX)
   endif()
 endif()
 
-## include pybind
-set(PYBIND11_DIR ${PROJECT_SOURCE_DIR}/../external/pybind11 CACHE PATH "Path to pybind11")
-add_subdirectory(${PYBIND11_DIR} pybind11)
-
 ## include libigl
 option(LIBIGL_USE_STATIC_LIBRARY "Use LibIGL as static library" OFF)
 option(LIBIGL_WITH_OPENGL            "Use viewer"         ON)
@@ -52,6 +48,10 @@ if(NOT TARGET igl::core)
   include(libigl)
 endif()
 
+## include pybind
+set(PYBIND11_DIR ${PROJECT_SOURCE_DIR}/../external/pybind11 CACHE PATH "Path to pybind11")
+add_subdirectory(${PYBIND11_DIR} pybind11)
+
 ## Prepare the python library
 pybind11_add_module(pyigl
   python_shared.cpp