diff --git a/FindMathGL.cmake b/FindMathGL.cmake index 0483380..f630fff 100644 --- a/FindMathGL.cmake +++ b/FindMathGL.cmake @@ -8,7 +8,7 @@ find_path(MATHGL_INCLUDE_DIR NAMES mgl2/mgl.h /usr/local/include ) -find_library(MATHGL_LIBRARIES NAMES mgl mgl-qt5 +find_library(MATHGL_LIBRARIES NAMES mgl mgl PATHS ${MPFR_PREFIX}/lib /opt/local/include @@ -16,6 +16,13 @@ find_library(MATHGL_LIBRARIES NAMES mgl mgl-qt5 /usr/local/include ) +find_library(MATHGL_QT5_LIBRARIES NAMES mgl-qt5 + PATHS + ${MPFR_PREFIX}/lib + /opt/local/include + /usr/include + /usr/local/include + ) if(MATHGL_INCLUDE_DIR AND MATHGL_LIBRARIES) get_filename_component(MATHGL_LIBRARY_DIR ${MATHGL_LIBRARIES} PATH)