From a1b91de32f4742de082bb2b3382827260717eb9a Mon Sep 17 00:00:00 2001 From: Yc7521 <40235757+Yc7521@users.noreply.github.com> Date: Mon, 21 Oct 2024 12:17:39 +0800 Subject: Update cmake_importfiles.lua --- xmake/modules/target/action/install/cmake_importfiles.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/modules/target/action/install/cmake_importfiles.lua b/xmake/modules/target/action/install/cmake_importfiles.lua index 98c142273..64c2a2268 100644 --- a/xmake/modules/target/action/install/cmake_importfiles.lua +++ b/xmake/modules/target/action/install/cmake_importfiles.lua @@ -136,8 +136,8 @@ function _install_cmake_targetfile(target, installdir, filename, opt) -- On DLL platforms, the import library is named differently from the target file content = content:gsub("# IMPORTED_IMPLIB_" .. postfix, "IMPORTED_IMPLIB_" .. postfix) content = content:gsub( - "IMPORTED_LOCATION_" .. postfix .. " \"%%${_IMPORT_PREFIX}/lib/.-\"", - "IMPORTED_LOCATION_" .. postfix .. " \"%%${_IMPORT_PREFIX}/bin/" .. libfile .. "\"" + "IMPORTED_LOCATION_" .. postfix .. " \"%${_IMPORT_PREFIX}/lib/.-\"", + "IMPORTED_LOCATION_" .. postfix .. " \"${_IMPORT_PREFIX}/bin/" .. libfile .. "\"" ) end io.writefile(importfile_dst, content) -- cgit v1.3.1