Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9cc66941 authored by hhakim's avatar hhakim
Browse files

Fix matlab mex compiling with openmp/gcc on *nix platforms (except macos).

parent 2773c152
Branches
Tags
No related merge requests found
...@@ -211,7 +211,8 @@ foreach(mex_target ${MEXFILE_TARGET_LIST}) ...@@ -211,7 +211,8 @@ foreach(mex_target ${MEXFILE_TARGET_LIST})
add_custom_command(OUTPUT ${mex_target}.${MEX_EXT} add_custom_command(OUTPUT ${mex_target}.${MEX_EXT}
COMMAND ${MATLAB_ROOT}/bin/mex COMMAND ${MATLAB_ROOT}/bin/mex
ARGS "-v" "-largeArrayDims" "${FAUST_MATLAB_MEX_SRC_DIR}/${mex_target}.cpp" ARGS "-v" "-largeArrayDims" "${FAUST_MATLAB_MEX_SRC_DIR}/${mex_target}.cpp"
"LDFLAGS=$$LDFLAGS -Wl,-rpath=${MATLAB_ROOT}/bin/${MEX_SUBDIR_LIB}:${FAUST_INSTALL_LIB}:${PROJECT_BINARY_DIR}" "LDFLAGS=$$LDFLAGS -fopenmp -Wl,-rpath=${MATLAB_ROOT}/bin/${MEX_SUBDIR_LIB}:${FAUST_INSTALL_LIB}:${PROJECT_BINARY_DIR}"
"CFLAGS=$$CFLAGS -fexceptions -fPIC -fno-omit-frame-pointer -pthread -fopenmp"
"-O" "-O"
${CMAKE_CXX_FLAGS_LIST} ${CMAKE_CXX_FLAGS_LIST}
${LDD_MEX_FLAGS} ${LDD_MEX_FLAGS}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment