Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 7da113fa authored by hhakim's avatar hhakim
Browse files

Fix matlab wrapper env setup in faust NSI installer for Windows.

The mex files weren't found because they were in mex/Release directory while the *.m corresponding files were in mex/ however (according to my tests) they must be in the same directory for matlab to launch any mex.
parent b7b5116a
No related merge requests found
...@@ -215,7 +215,13 @@ foreach(mex_target ${MEXFILE_TARGET_LIST}) ...@@ -215,7 +215,13 @@ foreach(mex_target ${MEXFILE_TARGET_LIST})
else() else()
target_link_libraries(${mex_target} ${MATIO_LIB_FILE}) target_link_libraries(${mex_target} ${MATIO_LIB_FILE})
endif() endif()
configure_file(${FAUST_MATLAB_DOC_SRC_DIR}/${mex_target}.m ${FAUST_MATLAB_MEX_BIN_DIR}/${mex_target}.m COPYONLY) if(WIN32)
# not perfect patch to fix the issue of *.mexw64 located in Release subdir. with associated *.m only in the parent directory
# that's because of VS must be configured in Release mode for another reasong (debug symbols missing in other libraries)
configure_file(${FAUST_MATLAB_DOC_SRC_DIR}/${mex_target}.m ${FAUST_MATLAB_MEX_BIN_DIR}/Release/${mex_target}.m COPYONLY)
else()
configure_file(${FAUST_MATLAB_DOC_SRC_DIR}/${mex_target}.m ${FAUST_MATLAB_MEX_BIN_DIR}/${mex_target}.m COPYONLY)
endif()
endforeach() endforeach()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment