Skip to content

Commit

Permalink
Use non-POD mosek
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Nov 29, 2016
1 parent b6cc6a7 commit 9eb62e5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
url = https://github.com/RobotLocomotion/gurobi.git
[submodule "externals/mosek"]
path = externals/mosek
url = https://github.com/rdeits/mosek-pod.git
url = https://github.com/RobotLocomotion/mosek.git
[submodule "externals/iris"]
path = externals/iris
url = https://github.com/rdeits/iris-distro.git
Expand Down
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ drake_setup_options()
# External projects in order of dependencies; 'trivial' ones first
drake_add_external(eigen PUBLIC CMAKE)
drake_add_external(meshconverters PUBLIC CMAKE)
drake_add_external(mosek PUBLIC MATLAB)
drake_add_external(spdlog PUBLIC CMAKE)
drake_add_external(swigmake PUBLIC CMAKE MATLAB PYTHON)
drake_add_external(yalmip PUBLIC CMAKE MATLAB)
Expand Down Expand Up @@ -106,6 +105,13 @@ drake_add_external(ipopt PUBLIC AUTOTOOLS FORTRAN
--with-lapack=BUILD
--with-pic)

# mosek
drake_add_external(mosek PUBLIC CMAKE MATLAB
CMAKE_ARGS
-DBUILD_TESTING=OFF
-DWITH_MATLAB=${Matlab_FOUND}
-DWITH_PYTHON=OFF)

# nlopt
drake_add_external(nlopt PUBLIC CMAKE
CMAKE_ARGS
Expand Down
2 changes: 1 addition & 1 deletion cmake/packages.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ macro(drake_find_packages)
drake_find_package(gurobi CONFIG)
drake_find_package(lcm CONFIG)
drake_find_package(meshconverters CONFIG)
drake_find_package(mosek PKG_CONFIG)
drake_find_package(mosek CONFIG)
drake_find_package(NLopt CONFIG)
drake_find_package(octomap CONFIG)
drake_find_package(robotlocomotion-lcmtypes CONFIG)
Expand Down
3 changes: 1 addition & 2 deletions drake/solvers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ if(gurobi_FOUND)
target_link_libraries(drakeOptimization gurobi)
endif()
if(mosek_FOUND)
target_include_directories(drakeOptimization PUBLIC ${mosek_INCLUDE_DIRS})
target_link_libraries(drakeOptimization ${mosek_LIBRARIES})
target_link_libraries(drakeOptimization mosek)
endif()

if(BUILD_TESTING)
Expand Down
2 changes: 1 addition & 1 deletion drake/solvers/mosek_solver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <list>
#include <vector>

#include <mosek/mosek.h>
#include <mosek.h>

#include <Eigen/Core>
#include <Eigen/SparseCore>
Expand Down
2 changes: 1 addition & 1 deletion externals/mosek
Submodule mosek updated from 1919b6 to 21b046

0 comments on commit 9eb62e5

Please sign in to comment.