Skip to content

Commit 9f75cf9

Browse files
committed
link sundials statically on mingw in cvode_solver.h
1 parent 05df6d2 commit 9f75cf9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

OMCompiler/SimulationRuntime/c/simulation/solver/cvode_solver.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
#ifndef CVODE_SOLVER_H
3232
#define CVODE_SOLVER_H
3333

34+
/* link sundials static on Windows */
35+
#if defined(__MINGW32__) || defined(_MSV_VER)
36+
#define LINK_SUNDIALS_STATIC 1
37+
#endif
38+
3439
#include "cvode/cvode.h" /* prototypes for CVODE fcts., consts. */
3540
#include "cvode/cvode_impl.h" /* prototypes for CVODE internal consts.*/
3641
#include "cvode/cvode_dense.h" /* prototype for CVODE dense matrix functions and constants */

0 commit comments

Comments
 (0)