Commit 5316868d authored by Max Lyon's avatar Max Lyon
Browse files

try to improve finding of metis and mumps

parent c7c4410a
Pipeline #10100 passed with stages
in 7 minutes and 29 seconds
......@@ -36,9 +36,9 @@ endif()
find_path(METIS_INCLUDE_DIR NAMES metis.h
HINTS "$ENV{IPOPT_HOME}/include/coin/ThirdParty"
"$ENV{IPOPT_HOME}/ThirdParty/Metis/metis-4.0/Lib/"
PATHS "/usr/include/"
HINTS "$ENV{IPOPT_HOME}/ThirdParty/Metis/metis-4.0/Lib/"
"$ENV{IPOPT_HOME}/include/coin/ThirdParty/"
"/usr/include/"
"/usr/include/metis"
"/opt/local/include"
"/opt/local/include/metis"
......@@ -49,7 +49,7 @@ find_path(METIS_INCLUDE_DIR NAMES metis.h
find_library( METIS_LIBRARY_RELEASE
coinmetis metis
HINTS "$ENV{IPOPT_HOME}/lib/"
PATHS "/usr/lib"
"/usr/lib"
"/opt/local/lib"
"${VS_SEARCH_PATH}Ipopt-3.12.9/lib"
"${VS_SEARCH_PATH}Ipopt-3.12.4/Ipopt/MSVisualStudio/v8-ifort/installed/lib"
......@@ -58,7 +58,7 @@ find_library( METIS_LIBRARY_RELEASE
find_library( METIS_LIBRARY_DEBUG
coinmetisd metisd
HINTS "$ENV{IPOPT_HOME}/lib/"
PATHS "/usr/lib"
"/usr/lib"
"/opt/local/lib"
"${VS_SEARCH_PATH}Ipopt-3.12.9/lib"
"${VS_SEARCH_PATH}Ipopt-3.12.4/Ipopt/MSVisualStudio/v8-ifort/installed/lib"
......
......@@ -34,18 +34,19 @@ elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 15.*" )
SET(VS_SEARCH_PATH "${CMAKE_WINDOWS_LIBS_DIR}/vs2017/x32/")
endif()
find_path(MUMPS_INCLUDE_DIR NAMES dmumps_c.h
HINTS "$ENV{IPOPT_HOME}/include/coin/ThirdParty/"
"$ENV{IPOPT_HOME}/ThirdParty/Mumps/MUMPS/include/"
PATHS "/usr/include/"
find_path(MUMPS_INCLUDE_DIR
NAMES mumps.h dmumps_c.h
HINTS "$ENV{IPOPT_HOME}/ThirdParty/Mumps/MUMPS/include/"
"$ENV{IPOPT_HOME}/include/coin/ThirdParty"
"/usr/include/"
"${VS_SEARCH_PATH}Ipopt-3.12.9/include/mumps"
"${VS_SEARCH_PATH}Ipopt-3.12.4/Ipopt/MSVisualStudio/v8-ifort/installed/include/mumps"
)
find_library( MUMPS_LIBRARY_DEBUG
dmumpsd coinmumpsd coinmumpscd
coinmumpsd dmumpsd coinmumpscd
HINTS "$ENV{IPOPT_HOME}/lib/"
PATHS "/usr/lib"
"/usr/lib"
"${VS_SEARCH_PATH}Ipopt-3.12.9/lib"
"${VS_SEARCH_PATH}Ipopt-3.12.4/Ipopt/MSVisualStudio/v8-ifort/installed/lib"
)
......@@ -53,7 +54,7 @@ find_library( MUMPS_LIBRARY_DEBUG
find_library( MUMPS_LIBRARY_RELEASE
coinmumps dmumps coinmumpsc
HINTS "$ENV{IPOPT_HOME}/lib/"
PATHS "/usr/lib"
"/usr/lib"
"${VS_SEARCH_PATH}Ipopt-3.12.9/lib"
"${VS_SEARCH_PATH}Ipopt-3.12.4/Ipopt/MSVisualStudio/v8-ifort/installed/lib"
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment