Skip to content

Instantly share code, notes, and snippets.

@elinx
Created April 29, 2018 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elinx/4ea60560e52997e819fe2b5a139f62e9 to your computer and use it in GitHub Desktop.
Save elinx/4ea60560e52997e819fe2b5a139f62e9 to your computer and use it in GitHub Desktop.
CMake Specify Python Headers and Library
cmake .. -DPYTHON_INCLUDE_DIR=/home/xilinxing/software/anaconda3/envs/py35/include/python3.5m/ -DPYTHON_LIBRARY=/home/xilinxing/software/anaconda3/envs/py35/lib
# how to find correct python directory
# python
>>> from distutils import sysconfig
>>> print(sysconfig.get_python_inc())
>>> print(sysconfig.get_python_lib())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment