diff options
| author | ruki <[email protected]> | 2025-04-24 22:42:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-24 10:24:45 +0800 |
| commit | ff67a6a7936dff1fd3549c003c87aa812c435474 (patch) | |
| tree | 4ae8d52708fe38ce1d38801e1e85a695ef0c2fce /xmake/modules/package/tools/cmake.lua | |
| parent | d75240a009a7f295e31568c83fe9e93de1be431d (diff) | |
rename more buildir in plugins
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index fb38858a8..d0055422d 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -983,10 +983,13 @@ function _fix_pdbdir_for_ninja(package) end -- enter build directory -function _enter_buildir(package, opt) - local buildir = opt.buildir or package:builddir() - os.mkdir(path.join(buildir, "install")) - return os.cd(buildir) +function _enter_builddir(package, opt) + local builddir = opt.builddir or opt.buildir or package:builddir() + if opt.buildir then + wprint("{buildir = } has been deprecated, please use {builddir = } in cmake.install") + end + os.mkdir(path.join(builddir, "install")) + return os.cd(builddir) end -- get build environments @@ -1305,7 +1308,7 @@ end function configure(package, configs, opt) opt = opt or {} - local oldir = _enter_buildir(package, opt) + local oldir = _enter_builddir(package, opt) -- pass configurations local argv = {} @@ -1339,7 +1342,7 @@ function build(package, configs, opt) configure(package, configs, opt) -- do build - local oldir = _enter_buildir(package, opt) + local oldir = _enter_builddir(package, opt) if opt.cmake_build then _build_for_cmakebuild(package, configs, opt) elseif cmake_generator then @@ -1371,7 +1374,7 @@ function install(package, configs, opt) configure(package, configs, opt) -- do build and install - local oldir = _enter_buildir(package, opt) + local oldir = _enter_builddir(package, opt) if opt.cmake_build then _install_for_cmakebuild(package, configs, opt) elseif cmake_generator then |
