Skip to content

Commit

Permalink
Update cmake_importfiles.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Yc7521 authored Oct 21, 2024
1 parent 36c5759 commit a1b91de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmake/modules/target/action/install/cmake_importfiles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a1b91de

Please sign in to comment.