[CMake] How to Determine If a Perl Module Is Installed?
Eric Eide
eeide at cs.utah.edu
Mon May 23 22:52:41 EDT 2016
Bruce Stephens <bruce.r.stephens at gmail.com> writes:
> execute_process(COMMAND ${PERL_EXECUTABLE} -MSys::CPU -e ""
> ERROR_QUIET RESULT_VARIABLE status)
Thank you very much for the tip! The command above works very well for me.
As a CMake newbie, I was afraid that I was overlooking some sort of
"prepackaged" version of this.
Eric.
--
-------------------------------------------------------------------------------
Eric Eide <eeide at cs.utah.edu> . University of Utah School of Computing
http://www.cs.utah.edu/~eeide/ . +1 (801) 585-5512 voice, +1 (801) 581-5843 FAX
More information about the CMake
mailing list