[cmake-developers] New module to verify that python libraries are available on the system
Florent Castelli
florent.castelli at gmail.com
Tue May 3 18:46:51 EDT 2016
"exec(\"import sys\\ntry:\\n import numpy\\nexcept:\\n sys.exit(0)\\nsys.exit(1)\")"
This seems to be great to check that numpy exists! You're probably
missing a variable somewhere ;)
/Florent
On 03/05/2016 20:37, Francois Budin wrote:
> Hello everyone,
>
> I wrote a short macro for one project I work on to verify at
> configuration time that a python library is available on the system on
> which the project is configured. I have attached a patch to
> potentially integrate this new macro to CMake. I saw other people
> doing similar things in other projects, so it might be of interest to
> the community.
> Hope this helps,
>
> Francois
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160504/ce8e7785/attachment.html>
More information about the cmake-developers
mailing list