Skip to content

Commit

Permalink
Using CMake to build, rather than calling 'make' directly.
Browse files Browse the repository at this point in the history
This should improve cross-platform support.
  • Loading branch information
sybrenstuvel committed Sep 25, 2015
1 parent 84de0e7 commit 4439d1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ do so. Run `python setup.py build` to build, and `python setup.py install` to in
Alternatively, if you want an in-place build that puts the compiled library right in
the current directory, run `python setup.py build_ext --inplace'

Only tested with Python 2.7 and 3.4 on Ubuntu Linux. At the moment, the setup.py script
uses a Linux/Unix-specific method to build the RVO2 library itself, before building the
Python wrappers.

If you have success (or failure) stories, please share them!
Only tested with Python 2.7 and 3.4 on Ubuntu Linux. The setup.py script uses CMake to build
the RVO2 library itself, before building the Python wrappers. If you have success (or failure)
stories, please share them!


Differences with the C++ version
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def run(self):
os.makedirs(build_dir)
subprocess.check_call(['cmake', '../..', '-DCMAKE_CXX_FLAGS=-fPIC'],
cwd=build_dir)
subprocess.check_call(['make', '-j8'], cwd=build_dir)
subprocess.check_call(['cmake', '--build', '.'], cwd=build_dir)

_build_ext.run(self)

Expand Down

0 comments on commit 4439d1a

Please sign in to comment.