mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 21:14:01 -06:00
Look for cpanm in sitebin too
This commit is contained in:
parent
cd1a39397b
commit
2d3fb15a3f
1 changed files with 2 additions and 0 deletions
2
Build.PL
2
Build.PL
|
@ -33,6 +33,8 @@ my %recommends = qw(
|
|||
my $cpanm;
|
||||
if (defined $ENV{CPANM} && -x $ENV{CPANM}) {
|
||||
$cpanm = $ENV{CPANM};
|
||||
} elsif (-x (my $c = File::Spec->catfile($Config{sitebin}, 'cpanm'))) {
|
||||
$cpanm = $c;
|
||||
} elsif (-x (my $c = File::Spec->catfile($Config{installscript}, 'cpanm'))) {
|
||||
$cpanm = $c;
|
||||
} elsif ($^O =~ /^(?:darwin|linux)$/ && system(qw(which cpanm)) == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue