mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-05 07:45:39 +08:00
Add cmake tool functions
This commit is contained in:
@@ -210,3 +210,9 @@ function get_cmake_version(): ?string
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function cmake_boolean_args(string $arg_name, bool $negative = false): array
|
||||
{
|
||||
$res = ["-D{$arg_name}=ON", "-D{$arg_name}=OFF"];
|
||||
return $negative ? array_reverse($res) : $res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user