Amber-MD / pytraj

Python interface of cpptraj
https://amber-md.github.io/pytraj
170 stars 38 forks source link

CMake: set RPATH properly on OS X, fix pytraj OpenMP being built out of order #1436

Closed multiplemonomials closed 6 years ago

multiplemonomials commented 6 years ago

Now, CMake will set pytraj's LDFLAGS to add in the correct RPATH for finding the Amber libraries on OS X. I decided to make this change in CMake, not in setup.py, so as to not risk breaking pytraj's standalone build, and the Amber Makefile build.

This also adds a minor fix for pytraj OpenMP sometimes being built before libcpptraj_omp in Amber.

This fixes Amber-MD/cmake-buildscripts#70 and Amber-MD/cmake-buildscripts#66

hainm commented 6 years ago

Thanks