Skip to content

Commit

Permalink
DOC: Add cmake flag for python virtual environments
Browse files Browse the repository at this point in the history
I'm of the masechist variety and don't like anaconda coming between me
and python. I also like to run python virtual environments. When running
cmake, find_packages(Numpy) did not work because my python exe path was
not recognized. This flag helps cmake find it.

I've also added a build/ directory into the .gitignore path for those
who like to build within the repo. That's pretty standard practice for
cmake.
  • Loading branch information
Stephen Horst committed Nov 2, 2018
1 parent 4a72305 commit c8e7899
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*~
extensions/isce/core/export/
*.swp
build/
1 change: 1 addition & 0 deletions doc/doxygen/install/centos.dox
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ Other optional arguments can be added to the cmake line
<tr><td rowspan="3">-DMEMORY_CHECK_COMMAND=PATH_TO_VALGRIND_EXECUTABLE -DMEMORYCHECK_COMMAND_OPTIONS="--trace-children=yes --leak-check=full --track-origins=yes" -DCMAKE_BUILD_TYPE=Debug<td>
<tr><td>Run tests with "-T memcheck" to check for memory leaks.
<tr><td>valgrind needs to be installed.
<tr><td>-DPYTHON_EXECUTABLE:FILENAME=<path_to_python_exe><td>Pass this argument if installing to a python virtual environment
</table>

<li> Build the software
Expand Down

0 comments on commit c8e7899

Please sign in to comment.