From 5a30bd5b59493fe4971d890fec35811431bc71a3 Mon Sep 17 00:00:00 2001 From: Dhruv Jawali Date: Fri, 21 Mar 2014 04:45:54 +0530 Subject: [PATCH 1/2] Update README_cmake.md --- doc/md/README_cmake.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/md/README_cmake.md b/doc/md/README_cmake.md index a9cc0339bd3..6db8bfd06e2 100644 --- a/doc/md/README_cmake.md +++ b/doc/md/README_cmake.md @@ -78,3 +78,5 @@ or, in general: ``` $ cmake -DPYTHON_INCLUDE_DIR=/path/to/python/include/dir -DPYTHON_LIBRARY=path/to/python/libpythonVERSION.so .. ``` + +* Under Linux, one may need to switch between different versions of Python, in which case the following options need to be included: `-DPYTHON_EXECUTABLE:FILEPATH=/path/to/python/version` and `-DPYTHON_INCLUDE_DIR=/path/to/dist-packages` From 9e2beb72dda3701a6efb153c34e5c4ba51fb6264 Mon Sep 17 00:00:00 2001 From: Dhruv Jawali Date: Fri, 21 Mar 2014 06:17:58 +0530 Subject: [PATCH 2/2] Update README_cmake.md --- doc/md/README_cmake.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/md/README_cmake.md b/doc/md/README_cmake.md index 6db8bfd06e2..9d7759e31ab 100644 --- a/doc/md/README_cmake.md +++ b/doc/md/README_cmake.md @@ -79,4 +79,10 @@ or, in general: $ cmake -DPYTHON_INCLUDE_DIR=/path/to/python/include/dir -DPYTHON_LIBRARY=path/to/python/libpythonVERSION.so .. ``` -* Under Linux, one may need to switch between different versions of Python, in which case the following options need to be included: `-DPYTHON_EXECUTABLE:FILEPATH=/path/to/python/version` and `-DPYTHON_INCLUDE_DIR=/path/to/dist-packages` +* Under Linux, one may need to switch between different versions of Python, in which case the following options need to be included: `-DPYTHON_EXECUTABLE:FILEPATH=/path/to/python/version`, `-DPYTHON_INCLUDE_DIR=/path/to/includes` and `-DPYTHON_PACKAGES_PATH=/path/to/dist/packages` + +For example: + +``` +cmake -DPYTHON_INCLUDE_DIR=/usr/include/python3.3 -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 -DPYTHON_PACKAGES_PATH=/usr/local/lib/python3.3/dist-packages -DPythonModular=ON .. +```