From 0bc590ffddec98eec5d2513a3d85274b7a791bc6 Mon Sep 17 00:00:00 2001 From: Qiming Sun Date: Sat, 16 Dec 2023 13:50:19 -0800 Subject: [PATCH] Handle xcfun patch failure in cmake --- pyscf/lib/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyscf/lib/CMakeLists.txt b/pyscf/lib/CMakeLists.txt index d04e6444dc..98fa206365 100644 --- a/pyscf/lib/CMakeLists.txt +++ b/pyscf/lib/CMakeLists.txt @@ -222,7 +222,7 @@ if(ENABLE_XCFUN AND BUILD_XCFUN) GIT_REPOSITORY https://github.com/dftlibs/xcfun.git GIT_TAG a89b783 # This patch adds the xcfun derivative order up to 5 - PATCH_COMMAND git apply ${PROJECT_SOURCE_DIR}/libxcfun.patch + PATCH_COMMAND git apply --reject ${PROJECT_SOURCE_DIR}/libxcfun.patch PREFIX ${PROJECT_BINARY_DIR}/deps INSTALL_DIR ${PROJECT_SOURCE_DIR}/deps CMAKE_ARGS -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_SHARED_LIBS=1