You need to make sure to link the correct version of the Gurobi library. Please check the FindGUROBI.cmake
file and modify the NAMES
line according to your installed Gurobi version (e.g. gurobi90
):
find_library(GUROBI_LIBRARY
NAMES gurobi gurobi91
HINTS ${GUROBI_DIR} $ENV{GUROBI_HOME}
PATH_SUFFIXES lib)
Please also make sure to set the environment variable GUROBI_HOME
to point to your installation directory.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…