File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,23 @@ message(STATUS "Configuring COLMAP...")
4747set (UNINSTALL_ENABLED OFF CACHE INTERNAL "" )
4848if (FETCH_COLMAP)
4949 FetchContent_MakeAvailable(COLMAP)
50+
51+ # Define where to store the patch
52+ set (COLMAP_PATCH_PATH ${CMAKE_BINARY_DIR} /fix_poisson.patch)
53+
54+ # Download the patch from GitHub
55+ file (DOWNLOAD
56+ https://github.com/colmap/colmap/commit/a586e7cb223cc86c609105246ecd3a10e0c55131.patch
57+ ${COLMAP_PATCH_PATH}
58+ SHOW_PROGRESS
59+ STATUS PATCH_DOWNLOAD_STATUS
60+ )
61+ # Apply the patch
62+ execute_process (
63+ COMMAND git apply ${COLMAP_PATCH_PATH}
64+ WORKING_DIRECTORY ${colmap_SOURCE_DIR}
65+ RESULT_VARIABLE PATCH_RESULT
66+ )
5067else ()
5168 find_package (COLMAP REQUIRED)
5269endif ()
You can’t perform that action at this time.
0 commit comments