Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Feb 14, 2024
1 parent eabcf87 commit dbcef0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
3 changes: 3 additions & 0 deletions code/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ set(POLYFIT_glew_DIR ${POLYFIT_ROOT}/3rd_glew)
### conditionally compile certain modules depending on libraries found on the system
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)

if (POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif ()
find_package(Boost REQUIRED)

################################################################################
Expand Down
18 changes: 0 additions & 18 deletions code/math/linear_program_solver_GUROBI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

#include <gurobi_c++.h>

#ifdef WIN32
#if (_MSC_VER == 1900) // vs 2015
#pragma comment(lib, "gurobi80.lib")
#ifdef _DEBUG
#pragma comment(lib, "gurobi_c++mdd2015.lib")
#else
#pragma comment(lib, "gurobi_c++md2015.lib")
#endif
#elif (_MSC_VER >= 1910 && _MSC_VER <= 1915) // vs 2017
#pragma comment(lib, "gurobi81.lib")
#ifdef _DEBUG
#pragma comment(lib, "gurobi_c++mdd2017.lib")
#else
#pragma comment(lib, "gurobi_c++md2017.lib")
#endif
#endif
#endif


bool LinearProgramSolver::_solve_GUROBI(const LinearProgram* program) {
try {
Expand Down

0 comments on commit dbcef0d

Please sign in to comment.