Re: [CMake] How to Determine If a Perl Module Is Installed?

2016-05-24 Thread Bruce Stephens
On Tue, May 24, 2016 at 3:52 AM, Eric Eide wrote: > As a CMake newbie, I was afraid that I was overlooking some sort of > "prepackaged" version of this. Doesn't look like it, but I agree it's the kind of thing that might be usefully included with CMake. -- Powered by

Re: [CMake] How to Determine If a Perl Module Is Installed?

2016-05-23 Thread Eric Eide
Bruce Stephens 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

Re: [CMake] How to Determine If a Perl Module Is Installed?

2016-05-23 Thread Bruce Stephens
On Mon, May 23, 2016 at 11:30 PM, Eric Eide wrote: > Hi! I am a CMake newbie, and I have a question about examining the set of > available Perl modules on a system. > > In CMake (version 2.8.12+), how can I test for the presence of a particular > Perl module, e.g., "Sys::CPU"?

[CMake] How to Determine If a Perl Module Is Installed?

2016-05-23 Thread Eric Eide
Hi! I am a CMake newbie, and I have a question about examining the set of available Perl modules on a system. In CMake (version 2.8.12+), how can I test for the presence of a particular Perl module, e.g., "Sys::CPU"? At the time that CMake is run, I would like to check for the presence of