cmake4(3)
π¦ cmake4 β the manual page, but make it cute
okay bestie, gather round, because this is cmake4(3) from the User Contributed Perl Documentation and it's literally about getting you a cmake π
β¨ NAME β¨
Alien::cmake4 β find it, download it, or build it: this is cmake 4 π
πΈ SYNOPSIS πΈ
Straight from Perl, no cap:
use Alien::cmake4;
use Env qw(@PATH);
unshift @PATH, Alien::cmake4->bin_dir;
system Alien::cmake4->exe, ...;
that's it, that's the whole vibe π«Ά
π DESCRIPTION π
So this Alien distribution gives you an external dependency on the build tool cmake, version 4.x.x specifically. And cmake? It's a super popular alternative to autoconf. iconic behavior, honestly π
π METHODS π
π§ bin_dir
my @dirs = Alien::cmake4->bin_dir;
This hands you the list of directories that need to be added to your PATH so that cmake actually works. like, it can't find itself, bestie, you gotta help it π«
π exe
my $exe = Alien::cmake4->exe;
The name of the cmake executable. yes that's all, and yes it matters π₯
π HELPERS π
β cmake4
%{cmake4}
The name of the cmake executable. (yes, again. it's a helper thing, iykyk π
)
π SEE ALSO π
Alien::Build::Plugin::Build::CMakeβ Alien::Build plugin forcmake. This will automatically pull inAlien::cmake3if you need it.Alien::CMakeβ this is an older distribution that provides an alienizedcmake. It is different in these ways:Alien::cmake3is based on alienfile and Alien::Build β it integrates better with Aliens that are based on that technology.Alien::cmake3will provide version 3.x.x βAlien::CMakewill provide 2.x.x on some platforms where more recent binaries are not available.Alien::cmake3will install on platforms where there is no systemcmakeand no binarycmakeprovided by cmake.org β it does this by buildingcmakefrom source.Alien::cmake3is preferred β in the opinion of the maintainer of bothAlien::cmake3andAlien::CMake, for these reasons.
π ENVIRONMENT π
ALIEN_INSTALL_TYPEβ this is the normal Alien::Build environment variable and you can set it to one ofshare,systemordefault.ALIEN_CMAKE_FROM_SOURCEβ if set to true, and if a share install is attempted,Alien::cmake4will not try a binary share install (even if available), and instead a source share install.
π CAVEATS π
If you do not have a system cmake version 4.x.x available, then a share install will be attempted. no drama, just so you know π«‘
Binary share installs are attempted on platforms for which the latest version of cmake are provided. As of this writing, this includes: Windows (32/64 bit), macOS (intel/arm universal) and Linux (intel/arm 64 bit). No checks are made to ensure that your platform is supported by this binary installs. Typically the same versions supported by the operating system vendor and supported by cmake, so that should not be a problem.
If you are using an operating system not supported by its vendor β Please Stop That, this is almost certainly a security vulnerability. π¨
That said if you really do need Alien::cmake4 on an unsupported system, you have some options:
- Install system version of
cmakeβ if you can find an older version ofcmake4.x.x that is supported by your operating system. - Force a source code install β set the
ALIEN_CMAKE_FROM_SOURCEenvironment variable to a true value to build a share install from source.
Source share installs are attempted on platforms for which the latest version of cmake are not available, like the various flavours of *BSD. This may not be ideal, and if you can install a system version of cmake it may work better. lowkey real talk π
π«Ά AUTHOR π«Ά
Author of Alien::cmake4: Michal Josef Ε paΔek <skim@cpan.org>
Author of Alien::cmake3: Graham Ollis <plicease@cpan.org>
Contributors of Alien::cmake3:
- Adriano Ferreira (FERREIRA)
- Dagfinn Ilmari MannsΓ₯ker (ilmari)
give them their flowers π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2017-2024 by Graham Ollis. This software is copyright (c) 2026 by Michal Josef Ε paΔek.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
okay and that's a wrap, bestie π this whole thing shipped as perl v5.42.3, dated 2026-07-16, and it lives in the manual as cmake4(3). go forth and build something iconic β¨π¦ periodt
π¦ where this page comes from
- fedora 44: perl-Alien-cmake4 0.04-2.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms