simplify dynamic prereq setting to only add Cpanel::JSON::XS if possible
authorGraham Knop <haarg@haarg.org>
Fri, 1 May 2020 15:48:32 +0000 (17:48 +0200)
committerGraham Knop <haarg@haarg.org>
Fri, 1 May 2020 15:48:32 +0000 (17:48 +0200)
commitda4118c08cc349aafb5b6aa533003962b0939d95
tree4a300d4a60744a51fa10ef71f3283a0d44761b1d
parent9f650aa9fc4452b4c39684608e49b12c667b69cb
simplify dynamic prereq setting to only add Cpanel::JSON::XS if possible

Since we are always trying to add Cpanel::JSON::XS as a prereq, and the
module prefers it if it is installed, there's no purpose to trying to
upgrade JSON::XS.

We can simplify the dynamic prereq handling to just add Cpanel::JSON::XS
if XS compilation is available.
Makefile.PL