diff options
| author | 2017-05-16 17:40:16 +0100 | |
|---|---|---|
| committer | 2017-05-16 18:50:15 +0100 | |
| commit | fdef8ca80ab6822a8f2b0fa5ca178503109cba9a (patch) | |
| tree | c1163e28b444e8651212e5c94158d81be81e2b1d /modulemanager | |
| parent | win: set CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION to . so the runtime librari... (diff) | |
Fix ModuleManager not being able to find make::configure.
Diffstat (limited to 'modulemanager')
| -rwxr-xr-x | modulemanager | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modulemanager b/modulemanager index b107f2c1f..42566d3b1 100755 --- a/modulemanager +++ b/modulemanager @@ -22,10 +22,15 @@ use strict; use warnings FATAL => qw(all); -use make::configure; - BEGIN { + require 5.8.0; push @INC, '.'; +} + +BEGIN { + # HACK: for some reason this needs to be in a second BEGIN block + # or it doesn't receive the updated @INC from above. + use make::configure; unless (module_installed("LWP::Simple")) { die "Your system is missing the LWP::Simple Perl module!"; } |
