summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYc7521 <[email protected]>2024-10-21 09:18:18 +0800
committerGitHub <[email protected]>2024-10-21 09:18:18 +0800
commit36c57592f64510d08d494f943487b57dd9ec3705 (patch)
treef94e8c322d438b7716bec1bcb037009afb9fa67a
parente1e4635d3112cd627b80f47cc06ee4f5140ad3fe (diff)
Update cmake_importfiles.lua
-rw-r--r--xmake/modules/target/action/install/cmake_importfiles.lua4
1 files 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 814ff0fb5..98c142273 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)