Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 315f22ff authored by hhakim's avatar hhakim
Browse files

Correct error in R2016a/gcc versions requirements.

[skip ci]
parent 9a365f4c
No related branches found
No related tags found
No related merge requests found
...@@ -189,13 +189,13 @@ if( ${MATLAB_DIR_TMP} MATCHES "matlab") ...@@ -189,13 +189,13 @@ if( ${MATLAB_DIR_TMP} MATCHES "matlab")
message(STATUS "Checking gcc version matches matlab version...") message(STATUS "Checking gcc version matches matlab version...")
#message(STATUS "GCC version is: " ${GCC_VERSION}) #message(STATUS "GCC version is: " ${GCC_VERSION})
string(REGEX REPLACE ".*([0-9]\\.[0-9])\\.[0-9].*" "\\1" GCC_VER_MAJOR_MINOR ${GCC_VERSION}) string(REGEX REPLACE ".*([0-9]\\.[0-9])\\.[0-9].*" "\\1" GCC_VER_MAJOR_MINOR ${GCC_VERSION})
if(${MATLAB_VERSION} MATCHES "R2017a" AND NOT ${GCC_VER_MAJOR_MINOR} VERSION_EQUAL "4.9") if(${MATLAB_VERSION} MATCHES "R201[67]a" AND NOT ${GCC_VER_MAJOR_MINOR} VERSION_EQUAL "4.9")
message(FATAL_ERROR "Error: for Matlab ${MATLAB_VERSION} you must use gcc 4.9 to compile mex code.") message(FATAL_ERROR "Error: for Matlab ${MATLAB_VERSION} you must use gcc 4.9 to compile mex code.")
#https://fr.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2017a_SupportedCompilers.pdf #https://fr.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2017a_SupportedCompilers.pdf
elseif(${MATLAB_VERSION} MATCHES "R201[46]a" AND NOT ${GCC_VER_MAJOR_MINOR} VERSION_EQUAL "4.7") # https://fr.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2016a_SupportedCompilers.pdf
elseif(${MATLAB_VERSION} MATCHES "R2014a" AND NOT ${GCC_VER_MAJOR_MINOR} VERSION_EQUAL "4.7")
message(FATAL_ERROR "Error: for Matlab ${MATLAB_VERSION} you must use gcc 4.7 to compile mex code.") message(FATAL_ERROR "Error: for Matlab ${MATLAB_VERSION} you must use gcc 4.7 to compile mex code.")
# https://fr.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2014a_SupportedCompilers.pdf # https://fr.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2014a_SupportedCompilers.pdf
# https://fr.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2016a_SupportedCompilers.pdf
elseif(NOT ${MATLAB_VERSION} MATCHES "R201[467]") elseif(NOT ${MATLAB_VERSION} MATCHES "R201[467]")
message(WARNING "Your version of Matlab is most likely not supported by faust matlab wrapper.") message(WARNING "Your version of Matlab is most likely not supported by faust matlab wrapper.")
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment