From 618ff7b329f384323845ec12d7be5acd47fcaea9 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 19 Nov 2019 00:48:38 +0800 Subject: improve the installed library dir of tools/cmake --- xmake/modules/package/tools/cmake.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index 75b38eaf1..04b7faa37 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -89,7 +89,11 @@ function install(package, configs, opt) local oldir = os.cd(buildir) -- init arguments - local argv = {"-DCMAKE_INSTALL_PREFIX=" .. path.absolute("install")} + -- + -- @see https://cmake.org/cmake/help/v3.14/module/GNUInstallDirs.html + -- LIBDIR: object code libraries (lib or lib64 or lib/ on Debian) + -- + local argv = {"-DCMAKE_INSTALL_PREFIX=" .. path.absolute("install"), "-DDCMAKE_INSTALL_LIBDIR=" .. path.absolute("install/lib")} if is_plat("windows") and is_arch("x64") then table.insert(argv, "-A") table.insert(argv, "x64") -- cgit v1.3.1