diff options
| author | Yc7521 <[email protected]> | 2024-10-21 09:18:18 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-10-21 09:18:18 +0800 |
| commit | 36c57592f64510d08d494f943487b57dd9ec3705 (patch) | |
| tree | f94e8c322d438b7716bec1bcb037009afb9fa67a | |
| parent | e1e4635d3112cd627b80f47cc06ee4f5140ad3fe (diff) | |
Update cmake_importfiles.lua
| -rw-r--r-- | xmake/modules/target/action/install/cmake_importfiles.lua | 4 |
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) |
