[cmake-developers] [PATCH] Get the PYTHON_SITELIB directory in FindPythonLibs
Andreas Schneider
asn at cryptomilk.org
Wed Dec 16 05:04:02 EST 2015
Hello,
similar to what I implemented in FindPerlLibs.cmake some years ago, I've added
PYTHON_SITELIB to FindPythonLibs. With PYTHON_SITELIB you have the location
where to install the python modules you built with cmake.
Example:
find_package(PythonInterp)
find_package(PythonLibs)
python_add_module(my_py my_py.c)
install(TARGETS my_py DESTINATION ${CMAKE_INSTALL_PREFIX}/${PYTHON_SITELIB})
Please review and push. Thanks.
Cheers,
-- andreas
--
Andreas Schneider GPG-ID: CC014E3D
www.cryptomilk.org asn at cryptomilk.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Modules-Add-variable-for-PYTHON_SITELIB-and-PYTHON_S.patch
Type: text/x-patch
Size: 2409 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20151216/cc524efa/attachment.bin>
More information about the cmake-developers
mailing list