Commit a2921fa3 authored by Max Lyon's avatar Max Lyon

improve GUROBI finder

parent 2fd547ba
......@@ -12,7 +12,7 @@ set (GUROBI_ENABLE OFF CACHE BOOL "Enable gurobi?")
if ( GUROBI_ENABLE )
set (GUROBI_BASE "c:" CACHE PATH "Base path of your gurobi installation")
if (GUROBI_INCLUDE_DIR)
if (GUROBI_INCLUDE_DIR AND GUROBI_CXX_LIBRARY AND GUROBI_LIBRARY)
# in cache already
set(GUROBI_FOUND TRUE)
set(GUROBI_INCLUDE_DIRS "${GUROBI_INCLUDE_DIR}" )
......
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