Commit ac7a3a2b authored by David Bommes's avatar David Bommes
Browse files

added standard search paths for dependencies installed with homebrew on Mac M1 architecture

parent e811b6b1
Pipeline #20880 failed with stages
in 12 minutes and 38 seconds
......@@ -35,6 +35,7 @@ if (NOT CBC_FOUND )
find_path(CBC_INCLUDE_DIR
NAMES CbcConfig.h
PATHS "$ENV{CBC_DIR}/include/coin"
"/opt/homebrew/include/cbc/coin/" # homebrew default path
"/usr/local/include/cbc/coin/" # homebrew default path
"/usr/include/coin"
"C:\\libs\\cbc\\include"
......@@ -45,6 +46,7 @@ find_path(CBC_INCLUDE_DIR
find_library( CBC_LIBRARY_DEBUG
NAMES Cbcd libCbcd
PATHS "$ENV{CBC_DIR}/lib"
"/opt/homebrew/lib" # homebrew default path
"/usr/local/lib" # homebrew default path
"/usr/lib"
"/usr/lib/coin"
......@@ -56,6 +58,7 @@ find_library( CBC_LIBRARY_DEBUG
find_library( CBC_SOLVER_LIBRARY_DEBUG
NAMES CbcSolverd libCbcSolverd
PATHS "$ENV{CBC_DIR}/lib"
"/opt/homebrew/lib" # homebrew default path
"/usr/local/lib" # homebrew default path
"/usr/lib"
"/usr/lib/coin"
......@@ -67,6 +70,7 @@ find_library( CBC_SOLVER_LIBRARY_DEBUG
find_library( CBC_LIBRARY_RELEASE
NAMES Cbc libCbc
PATHS "$ENV{CBC_DIR}/lib"
"/opt/homebrew/lib" # homebrew default path
"/usr/local/lib" # homebrew default path
"/usr/lib"
"/usr/lib/coin"
......@@ -79,6 +83,7 @@ find_library( CBC_SOLVER_LIBRARY_RELEASE
NAMES CbcSolver libCbcSolver
PATHS "$ENV{CBC_DIR}/lib"
"/opt/homebrew/lib" # homebrew default path
"/usr/local/lib" # homebrew default path
"/usr/lib"
"/usr/lib/coin"
......
......@@ -35,6 +35,7 @@ find_path(CGL_INCLUDE_DIR
NAMES CglConfig.h
PATHS "$ENV{CGL_DIR}/include/coin"
"$ENV{CBC_DIR}/include/coin"
"/opt/homebrew/include/cgl/coin/" # homebrew default path
"/usr/local/include/cgl/coin/" # homebrew default path
"/usr/include/coin"
"C:\\libs\\cgl\\include"
......@@ -47,6 +48,7 @@ find_library( CGL_LIBRARY_DEBUG
NAMES Cgld libCgld
PATHS "$ENV{CGL_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/opt/homebrew/lib" # homebrew default path
"/usr/local/lib" # homebrew default path
"/usr/lib"
"/usr/lib/coin"
......@@ -60,6 +62,7 @@ find_library( CGL_LIBRARY_RELEASE
NAMES Cgl libCgl
PATHS "$ENV{CGL_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/opt/homebrew/lib" # homebrew default path
"/usr/local/lib" # homebrew default path
"/usr/lib"
"/usr/lib/coin"
......
......@@ -36,6 +36,7 @@ find_path(CLP_INCLUDE_DIR
NAMES ClpConfig.h
PATHS "$ENV{CLP_DIR}/include/coin"
"$ENV{CBC_DIR}/include/coin"
"/opt/homebrew/include/clp/coin" #homebrew default path
"/usr/local/include/clp/coin" #homebrew default path
"/usr/include/coin"
"C:\\libs\\clp\\include"
......@@ -48,6 +49,7 @@ find_library( CLP_LIBRARY_DEBUG
NAMES Clpd libClpd
PATHS "$ENV{CLP_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/opt/homebrew/lib" # homebrew default path
"/usr/local/lib" # homebrew default path
"/usr/lib"
"/usr/lib/coin"
......@@ -61,6 +63,7 @@ find_library( CLP_LIBRARY_RELEASE
NAMES Clp libClp
PATHS "$ENV{CLP_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/opt/homebrew/lib" # homebrew default path
"/usr/local/lib" # homebrew default path
"/usr/lib"
"/usr/lib/coin"
......
......@@ -35,6 +35,7 @@ find_path(COINUTILS_INCLUDE_DIR
NAMES CoinUtilsConfig.h
PATHS "$ENV{COINUTILS_DIR}/include/coin"
"$ENV{CBC_DIR}/include/coin"
"/opt/homebrew/include/coinutils/coin/" # homebrew default path
"/usr/local/include/coinutils/coin/" # homebrew default path
"/usr/include/coin"
"C:\\libs\\coinutils\\include"
......@@ -47,6 +48,7 @@ find_library( COINUTILS_LIBRARY_DEBUG
NAMES CoinUtilsd libCoinUtilsd
PATHS "$ENV{COINUTILS_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/opt/homebrew/lib" # homebrew default path
"/usr/local/lib" # homebrew default path
"/usr/lib"
"/usr/lib/coin"
......@@ -60,6 +62,7 @@ find_library( COINUTILS_LIBRARY_RELEASE
NAMES CoinUtils libCoinUtils
PATHS "$ENV{COINUTILS_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/opt/homebrew/lib" # homebrew default path
"/usr/local/lib" # homebrew default path
"/usr/lib"
"/usr/lib/coin"
......
......@@ -88,6 +88,7 @@ if (WIN32)
ELSE( WIN32 )
find_path(IPOPT_INCLUDE_DIR NAMES IpNLP.hpp
PATHS "$ENV{IPOPT_HOME}/include/coin"
"/opt/homebrew/include/coin-or" # homebrew M1 default path
"/usr/local/include/coin-or" # homebrew default path
"/usr/include/coin"
"~/sw/Ipopt-3.12.4-installed/include/coin"
......@@ -98,6 +99,7 @@ ELSE( WIN32 )
HINTS "$ENV{IPOPT_HOME}/lib"
PATHS
"/usr/lib"
"/opt/homebrew/lib"
"~/sw/Ipopt-3.12.4-installed/lib"
)
......
......@@ -47,6 +47,7 @@ find_library( MUMPS_LIBRARY_DEBUG
coinmumpsd dmumpsd coinmumpscd
HINTS "$ENV{IPOPT_HOME}/lib/"
"/usr/lib"
"/opt/homebrew/lib"
"${VS_SEARCH_PATH}Ipopt-3.12.9/lib"
"${VS_SEARCH_PATH}Ipopt-3.12.4/Ipopt/MSVisualStudio/v8-ifort/installed/lib"
)
......@@ -55,6 +56,7 @@ find_library( MUMPS_LIBRARY_RELEASE
coinmumps dmumps coinmumpsc
HINTS "$ENV{IPOPT_HOME}/lib/"
"/usr/lib"
"/opt/homebrew/lib"
"${VS_SEARCH_PATH}Ipopt-3.12.9/lib"
"${VS_SEARCH_PATH}Ipopt-3.12.4/Ipopt/MSVisualStudio/v8-ifort/installed/lib"
)
......
......@@ -36,6 +36,7 @@ find_path(OSI_INCLUDE_DIR
PATH_SUFFIXES "Osi"
PATHS "$ENV{OSI_DIR}/include/coin"
"$ENV{CBC_DIR}/include/coin"
"/opt/homebrew/include/osi/coin" # homebrew default path
"/usr/local/include/osi/coin" # homebrew default path
"/usr/include/coin"
"C:\\libs\\osi\\include"
......@@ -48,6 +49,7 @@ find_library( OSI_LIBRARY_DEBUG
NAMES Osid libOsid
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/opt/homebrew/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
......@@ -60,6 +62,7 @@ find_library( OSI_LIBRARY_RELEASE
NAMES Osi libOsi
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/opt/homebrew/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
......@@ -72,6 +75,7 @@ find_library( OSI_CBC_LIBRARY_DEBUG
NAMES OsiCbcd libOsiCbcd
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/opt/homebrew/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
......@@ -84,6 +88,7 @@ find_library( OSI_CBC_LIBRARY_RELEASE
NAMES OsiCbc libOsiCbc
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/opt/homebrew/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
......@@ -96,6 +101,7 @@ find_library( OSI_CLP_LIBRARY_DEBUG
NAMES OsiClpd libOsiClpd
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/opt/homebrew/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
......@@ -108,6 +114,7 @@ find_library( OSI_CLP_LIBRARY_RELEASE
NAMES OsiClp libOsiClp
PATHS "$ENV{OSI_DIR}/lib"
"$ENV{CBC_DIR}/lib"
"/opt/homebrew/lib"
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
......
......@@ -93,12 +93,14 @@ else( WIN32 )
if( APPLE)
FIND_PATH( CHOLMOD_INCLUDE_DIR cholmod.h
PATHS /opt/local/include/ufsparse
/opt/homebrew/include
/usr/local/include )
FIND_LIBRARY(SUITESPARSE_LIBRARY
NAMES libSuiteSparse.dylib
libsuitesparseconfig.dylib
PATHS /opt/local/lib
/opt/homebrew/lib
/usr/local/lib)
message("SUITESPARSE_LIBRARY: ${SUITESPARSE_LIBRARY}")
......@@ -106,6 +108,7 @@ else( WIN32 )
NAMES libSuiteSparse.dylib
libsuitesparseconfig.dylib
PATHS /opt/local/lib
/opt/homebrew/lib
/usr/local/lib)
message("SUITESPARSE_LIBRARY_DIR: ${SUITESPARSE_LIBRARY_DIR}")
......@@ -213,4 +216,3 @@ if (SUITESPARSE_LIBRARY_DIR AND SUITESPARSE_LIBRARIES)
else (SUITESPARSE_LIBRARY_DIR AND SUITESPARSE_LIBRARIES)
SET( SUITESPARSE_FOUND FALSE )
endif (SUITESPARSE_LIBRARY_DIR AND SUITESPARSE_LIBRARIES)
Supports Markdown
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