Skip to content

Commit

Permalink
Mongoose: Define MONGOOSE_BUILDING when building objects for .mex
Browse files Browse the repository at this point in the history
`.mex` files are basically shared libraries that are loaded by Matlab.
Define `MONGOOSE_BUILDING` while building the object files for the
`.mex` file.
  • Loading branch information
mmuetzel committed Jun 13, 2024
1 parent b591b78 commit 2e86ea5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Mongoose/MATLAB/mongoose_make.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ function mongoose_make (run_test)
% Append optimization
flags = [flags ' -O -silent COPTIMFLAGS="-O3 -fwrapv"'];

% Append while building objects for shared library
flags = [flags ' -DMONGOOSE_BUILDING'];

cpp_flags = '' ;
lib = '';
if (isunix)
Expand Down

0 comments on commit 2e86ea5

Please sign in to comment.