Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

find package: optimize#6354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
SineStriker wants to merge8 commits intoxmake-io:dev
base:dev
Choose a base branch
Loading
fromSineStriker:find_package
Open
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
minor tweaks
  • Loading branch information
@SineStriker
SineStriker committedApr 22, 2025
commit78f16fce38cff13e4611c502ecbfc4c2db08fe78
9 changes: 4 additions & 5 deletionsxmake/modules/package/manager/cmake/find_package.lua
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -99,11 +99,11 @@ function _find_package(cmake, name, opt)
local ninja_version = "1.10.2"
local ninjascript
if os.host() == "windows" then
ninjascript = path.join(workdir, "ninja.bat")
ninjascript = path.join(workdir, "ninja1.bat")
io.writefile(ninjascript, "@echo off\necho " .. ninja_version)
else
ninjascript = path.join(workdir, "ninja.sh")
io.writefile(ninjascript, "#!/bin/sh\necho " .. ninja_version)
ninjascript = path.join(workdir, "ninja1.sh")
io.writefile(ninjascript, "#!/bin/bash\necho " .. ninja_version)
os.vrunv("chmod", {"+x", ninjascript}, {curdir = workdir, envs = envs})
end

Expand DownExpand Up@@ -246,8 +246,7 @@ function _find_package(cmake, name, opt)
try {
function()
return os.vrunv(cmake.program,
{
workdir,
{
"-S",
workdir,
"-B",
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp