Skip to content

Commit 2974609

Browse files
committed
Fix(CI): fix pyabacus link error and CMake CMP0177 policy
pyabacus/src/hsolver/CMakeLists.txt: add psi_paging.cpp to diagopack library sources. Fixes undefined symbol get_cpu_pointer_safe which is defined in psi_paging.cpp. CMakeLists.txt: set CMP0177 to OLD to suppress install() DESTINATION path normalization warning with CMake >= 3.31 when -Werror=dev is used. This fixes the 'Integration Test' Configure step failure.
1 parent 605f64e commit 2974609

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
cmake_minimum_required(VERSION 3.16)
22

3+
if(POLICY CMP0177)
4+
cmake_policy(SET CMP0177 OLD)
5+
endif()
6+
37
# Require out-of-source builds
48
file(TO_CMAKE_PATH "${CMAKE_BINARY_DIR}/CMakeLists.txt" LOC_PATH)
59
if(EXISTS "${LOC_PATH}")

python/pyabacus/src/hsolver/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ list(APPEND _diago
2020
${BASE_PATH}/module_device/memory_op.cpp
2121

2222
${PSI_PATH}/psi.cpp
23+
${PSI_PATH}/psi_paging.cpp
2324
)
2425
add_library(diagopack SHARED
2526
${_diago}

0 commit comments

Comments
 (0)