1Alien::Build::Plugin::BUusielrd:C:oCnMtarkieb(u3t)ed PerAlliDeonc:u:mBeunitladt:i:oPnlugin::Build::CMake(3)
2
3
4

NAME

6       Alien::Build::Plugin::Build::CMake - CMake plugin for Alien::Build
7

VERSION

9       version 2.40
10

SYNOPSIS

12        use alienfile;
13
14        share {
15          plugin 'Build::CMake';
16          build [
17            # this is the default build step, if you do not specify one.
18            [ '%{cmake}',
19                @{ meta->prop->{plugin_build_cmake}->{args} },
20                # ... put extra cmake args here ...
21                '%{.install.extract}'
22            ],
23            '%{make}',
24            '%{make} install',
25          ];
26        };
27

DESCRIPTION

29       This plugin helps build alienized projects that use "cmake".  The
30       intention is to make this a core Alien::Build plugin if/when it becomes
31       stable enough.
32
33       This plugin provides a meta property "plugin_build_cmake.args" which
34       may change over time but for the moment includes:
35
36        -G %{cmake_generator}                          \
37        -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true    \
38        -DCMAKE_INSTALL_PREFIX:PATH=%{.install.prefix} \
39        -DCMAKE_INSTALL_LIBDIR:PATH=lib                \
40        -DCMAKE_MAKE_PROGRAM:PATH=%{make}
41
42       This plugin supports out-of-source builds via the meta property
43       "out_of_source".
44

METHODS

46   cmake_generator
47       Returns the "cmake" generator according to your Perl's "make".
48
49   is_dmake
50       Returns true if your Perls "make" appears to be "dmake".
51

HELPERS

53   cmake
54       This plugin replaces the default "cmake" helper with the one that comes
55       from Alien::cmake3.
56
57   cmake_generator
58       This is the appropriate "cmake" generator to use based on the make used
59       by your Perl.  This is frequently "Unix Makefiles".  One place where it
60       may be different is if your Windows Perl uses "nmake", which comes with
61       Visual C++.
62
63   make
64       This plugin may replace the default "make" helper if the default "make"
65       is not supported by "cmake".  This is most often an issue with older
66       versions of Strawberry Perl which used "dmake".  On Perls that use
67       "dmake", this plugin will search for GNU Make in the PATH, and if it
68       can't be found will fallback on using Alien::gmake.
69

SEE ALSO

71       Alien::Build
72       Alien::Build::Plugin::Build::Autoconf
73       alienfile
74

AUTHOR

76       Author: Graham Ollis <plicease@cpan.org>
77
78       Contributors:
79
80       Diab Jerius (DJERIUS)
81
82       Roy Storey (KIWIROY)
83
84       Ilya Pavlov
85
86       David Mertens (run4flat)
87
88       Mark Nunberg (mordy, mnunberg)
89
90       Christian Walde (Mithaldu)
91
92       Brian Wightman (MidLifeXis)
93
94       Zaki Mughal (zmughal)
95
96       mohawk (mohawk2, ETJ)
97
98       Vikas N Kumar (vikasnkumar)
99
100       Flavio Poletti (polettix)
101
102       Salvador Fandiño (salva)
103
104       Gianni Ceccarelli (dakkar)
105
106       Pavel Shaydo (zwon, trinitum)
107
108       Kang-min Liu (劉康民, gugod)
109
110       Nicholas Shipp (nshp)
111
112       Juan Julián Merelo Guervós (JJ)
113
114       Joel Berger (JBERGER)
115
116       Petr Pisar (ppisar)
117
118       Lance Wicks (LANCEW)
119
120       Ahmad Fatoum (a3f, ATHREEF)
121
122       José Joaquín Atria (JJATRIA)
123
124       Duke Leto (LETO)
125
126       Shoichi Kaji (SKAJI)
127
128       Shawn Laffan (SLAFFAN)
129
130       Paul Evans (leonerd, PEVANS)
131
132       Håkon Hægland (hakonhagland, HAKONH)
133
135       This software is copyright (c) 2011-2020 by Graham Ollis.
136
137       This is free software; you can redistribute it and/or modify it under
138       the same terms as the Perl 5 programming language system itself.
139
140
141
142perl v5.32.1                      2021-05-A1l3ien::Build::Plugin::Build::CMake(3)
Impressum