Skip to content

Commit

Permalink
Tweak compile_mex.m script for hopefully improved Windows compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Jeub committed Nov 29, 2016
1 parent 022cd94 commit 7678b20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MEX_SRC/compile_mex.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
arraydims='-largeArrayDims';
end
mkdir('../private');
setenv('CXXFLAGS',[getenv('CXXFLAGS'),' -std=c++11']);
setenv('CXXFLAGS',[getenv('CXXFLAGS'),' -std=c++11 -O4']);
if exist('OCTAVE_VERSION','builtin')
mex -DOCTAVE -Imatlab_matrix metanetwork_reduce.cpp matlab_matrix/full.cpp matlab_matrix/sparse.cpp group_index.cpp
mex -DOCTAVE -Imatlab_matrix group_handler.cpp matlab_matrix/full.cpp matlab_matrix/sparse.cpp group_index.cpp
mex -DOCTAVE ../Assignment/assignmentoptimal.c
else
mex(arraydims,'CXXFLAGS="\$CXXFLAGS -O4"','-Imatlab_matrix','metanetwork_reduce.cpp', 'matlab_matrix/full.cpp', 'matlab_matrix/sparse.cpp', 'group_index.cpp')
mex(arraydims,'CXXFLAGS="\$CXXFLAGS -O4"', '-Imatlab_matrix', 'group_handler.cpp', 'matlab_matrix/full.cpp', 'matlab_matrix/sparse.cpp', 'group_index.cpp')
mex(arraydims,'-Imatlab_matrix','metanetwork_reduce.cpp', 'matlab_matrix/full.cpp', 'matlab_matrix/sparse.cpp', 'group_index.cpp')
mex(arraydims,'-Imatlab_matrix', 'group_handler.cpp', 'matlab_matrix/full.cpp', 'matlab_matrix/sparse.cpp', 'group_index.cpp')
mex(arraydims,'../Assignment/assignmentoptimal.c')
end

Expand Down

0 comments on commit 7678b20

Please sign in to comment.