From 6bcc26cf3a6322b318834e517e9c7d572e5e13a8 Mon Sep 17 00:00:00 2001 From: sunliang98 <1700011430@pku.edu.cn> Date: Sun, 26 Oct 2025 16:54:30 +0800 Subject: [PATCH 1/2] Test: Fix version_check.yml --- .github/workflows/version_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/version_check.yml b/.github/workflows/version_check.yml index 3be88b2720..4ad613ec17 100644 --- a/.github/workflows/version_check.yml +++ b/.github/workflows/version_check.yml @@ -33,7 +33,7 @@ jobs: fi # Verify that the version in version.h matches the tag - if [[ "${{ steps.versions.outputs.current_tag }}" != "v${CODE_VERSION}" ]]; then + if [[ "${{ steps.versions.outputs.current_tag }}" != "${CODE_VERSION}" ]]; then echo "::error::Version mismatch: tag=${{ steps.versions.outputs.current_tag }} ≠ code=${CODE_VERSION}" exit 1 fi From e087e7f4a281920c7cfe43d44b0ce526feda8d58 Mon Sep 17 00:00:00 2001 From: sunliang98 <1700011430@pku.edu.cn> Date: Sun, 26 Oct 2025 17:13:23 +0800 Subject: [PATCH 2/2] Test: Fix FindMKL.cmake, which causes *** No rule to make target 'mkl_scalapack_lp64', needed by 'abacus'. when compiling with intel. --- cmake/FindMKL.cmake | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cmake/FindMKL.cmake b/cmake/FindMKL.cmake index a0c389b5ae..f9cddfcf74 100644 --- a/cmake/FindMKL.cmake +++ b/cmake/FindMKL.cmake @@ -91,5 +91,12 @@ endif() if(NOT TARGET MKL::MKL_SCALAPACK) find_library(MKL_SCALAPACK NAMES mkl_scalapack_lp64 HINTS ${MKLROOT}/lib ${MKLROOT}/lib/intel64) message(STATUS "Found MKL_SCALAPACK: ${MKL_SCALAPACK}") - add_library(MKL::MKL_SCALAPACK OBJECT IMPORTED MKL_SCALAPACK) + if(MKL_SCALAPACK) + # create an IMPORTED target that points to the discovered library file + add_library(MKL::MKL_SCALAPACK UNKNOWN IMPORTED) + set_target_properties(MKL::MKL_SCALAPACK PROPERTIES + IMPORTED_LOCATION "${MKL_SCALAPACK}" + INTERFACE_INCLUDE_DIRECTORIES "${MKL_INCLUDE}" + ) + endif() endif()