remove code duplication in gurobi solver

5 jobs for gurobi_const in 4 minutes and 17 seconds
Status Name Job ID Coverage
  Test
passed clang-c++11 #39704
Linux

00:04:16

failed CoMISo-VS2013-Qt-5.5.1-x64 #39706
VS2013 Qt551

00:00:08

passed gcc-c++11 #39703
Linux

00:04:17

passed macos-c++11 #39705
Apple

00:02:24

 
  Deploy
skipped trigger_build #39707
 
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