remove code duplication in gurobi solver

5 jobs for gurobi_const in 4 minutes and 17 seconds
Name Stage Failure
failed
CoMISo-VS2013-Qt-5.5.1-x64 Test There is an unknown failure, please try again
-- Boost not found!
-- Could NOT find GMM (missing: GMM_INCLUDE_DIR)
CMake Error at CMakeLists.txt:72 (message):
GMM not found!


-- Configuring incomplete, errors occurred!
See also "E:/gitlab/builds/7949bd93/0/CoMISo/CoMISo/rel/CMakeFiles/CMakeOutput.log".
ERROR: Job failed: exit status 1