remove code duplication in gurobi solver

5 jobs for gurobi_const in 4 minutes and 17 seconds
Status Job ID Name Coverage
  Test
failed #39706
Qt551 VS2013
CoMISo-VS2013-Qt-5.5.1-x64

00:00:08

passed #39704
Linux
clang-c++11

00:04:16

passed #39703
Linux
gcc-c++11

00:04:17

passed #39705
Apple
macos-c++11

00:02:24

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