From f91665f0564cb49e7a78f8579fa5c00259914b47 Mon Sep 17 00:00:00 2001 From: dzzz2001 Date: Tue, 25 Feb 2025 10:59:54 +0800 Subject: [PATCH] fix cmake bug --- cmake/FindMKL.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindMKL.cmake b/cmake/FindMKL.cmake index 38db391d29..a0c389b5ae 100644 --- a/cmake/FindMKL.cmake +++ b/cmake/FindMKL.cmake @@ -83,7 +83,7 @@ endif() endif() # MKL::MKL # For compatibility with legacy libpaw_interface CMakeLists.txt -if(TARGET MKL::MKL) +if(TARGET MKL::MKL AND NOT TARGET IntelMKL::MKL) add_library(IntelMKL::MKL ALIAS MKL::MKL) endif()