If a PERL_EXECUTABLE is passed on the CMake command line, e.g. because the default one in PATH is insufficient, kdoctools would still use the one in PATH incorrectly. This fixes it to use the specified perl both at configure time and at build / install time.
Details
Details
Diff Detail
Diff Detail
- Repository
- R238 KDocTools
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Please fallback on looking up perl from path if that perl does not exists.
Purely relying on a hardcoded path would break the capability of relocating kdoctools.
Comment Actions
PERL_EXECUTABLE is set by cmake's FindPerl module (https://cmake.org/cmake/help/v3.0/module/FindPerl.html), so it should always be defined. This only fixes the case where it's overridden on the command line (or cmake-gui, etc).
Comment Actions
ah sorry I took this for a config file, everything is fine then.
Note to myself: Don't review code on the phone....