MASTmultiphysics / mast-multiphysics

Multidisciplinary-design Adaptation and Sensitivity Toolkit (MAST) - Sensitivity-enabled multiphysics FEA for design
https://www.mast-multiphysics.com
GNU Lesser General Public License v2.1
44 stars 24 forks source link

Tweak to Eigen CMake. #38

Closed jdeaton closed 4 years ago

jdeaton commented 4 years ago

Updated FindEigen3 to prefer Eigen in EIGEN_ROOT hint.

On macOS FindEigen3.cmake appeared to be preferring Eigen in system paths rather than what was provided in cmake command line option -DEIGEN3_ROOT. This was causing trouble in Spack installs of the MAST library for the Spack package I was preparing.

Just wanted to do a pull request so @manavbhatia knew there was an update in the basic build process rather than merging directly into master.

Also looks like we might want to see if we can squash the commits somehow to eliminate a couple of those I did on our internal GitLab that are showing up.

manavbhatia commented 4 years ago

@jdeaton looks good to me. Feel free to merge it into master.