summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-29 00:41:22 +0800
committerruki <[email protected]>2020-09-29 00:41:22 +0800
commit045c1524737d8f12da869e99a13316e640519c56 (patch)
tree5c5c7d3b8de3070b818dfeb2ad45d7fe05183e0e
parent675fc8fca1e62f24e505523eb1b8e0523a9ffb94 (diff)
add tips
-rw-r--r--xmake/modules/package/tools/cmake.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index a121a475c..1c1ab958b 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -340,6 +340,7 @@ function _install_files_for_cmake(package)
-- e.g. set(_IMPORT_PREFIX "/Users/ruki/.xmake/cache/packages/2009/x/xxx/master/source/xxx/build_C8AA35F0/install")
--
for _, cmakefile in ipairs(os.files("install/lib/cmake/*/*.cmake")) do
+ vprint("patching %s ..", cmakefile)
local prefixdir_old = path.absolute("install")
local prefixdir_new = package:installdir()
io.replace(cmakefile, prefixdir_old, prefixdir_new, {plain = true})