"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
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers