diff options
| author | Yc7521 <[email protected]> | 2024-10-21 12:17:39 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-10-21 12:17:39 +0800 |
| commit | a1b91de32f4742de082bb2b3382827260717eb9a (patch) | |
| tree | b9416ae08b421bf5fcc2c471851003bbec65fd59 | |
| parent | 36c57592f64510d08d494f943487b57dd9ec3705 (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 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) |
