Skip to content

Commit

Permalink
fix compilation on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
RSchwan committed Nov 1, 2024
1 parent 6190da0 commit 9a93ce3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/matlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
with:
submodules: 'recursive'

- uses: ilammy/msvc-dev-cmd@v1

- name: Setup external build directory
run: mkdir -p build_external

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
with:
submodules: 'recursive'

- uses: ilammy/msvc-dev-cmd@v1

- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
Expand All @@ -45,6 +47,9 @@ jobs:
# Dependencies
conda install eigen=${{ matrix.eigen }} libmatio
- name: Setup external build directory
run: mkdir -p build_external

- name: Setup Ninja
if: runner.os == 'Windows'
uses: seanmiddleditch/gha-setup-ninja@master
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ jobs:
with:
submodules: 'recursive'

- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.target.arch == 'x86' && 'amd64_x86' || 'amd64' }}

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v2
Expand Down
1 change: 1 addition & 0 deletions include/piqp/solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#define PIQP_SOLVER_HPP

#include <cstdio>
#include <memory>
#include <Eigen/Dense>
#include <Eigen/Sparse>

Expand Down
1 change: 1 addition & 0 deletions interfaces/matlab/make_piqp.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function make_piqp(varargin)
% Add arguments to cmake and mex compiler
cmake_args = [
'-DBUILD_C_INTERFACE=OFF ' ...
'-DBUILD_WITH_TEMPLATE_INSTANTIATION=OFF ' ...
'-DBUILD_MATLAB_INTERFACE=ON ' ...
'-DBUILD_TESTS=OFF ' ...
'-DBUILD_EXAMPLES=OFF ' ...
Expand Down

0 comments on commit 9a93ce3

Please sign in to comment.