Skip to content

Commit

Permalink
Check if root dir ends with the release name
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Nov 22, 2023
1 parent 7e20c2e commit 12be6a7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion matlab/tools/cmake/BuildMatlabArrowInterface.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ function(set_matlab_variables)
string(SUBSTRING ${MATLAB_ADDITIONAL_VERSIONS} 0 ${equal_char_pos} matlab_release_name)
message(STATUS "matlab_release_name = ${matlab_release_name}")
string(SUBSTRING ${MATLAB_ADDITIONAL_VERSIONS} 0 ${matlab_additional_versions_length} matlab_release_version)
message(STATUS "matlab_release_version = ${matlab_release_version}")
message(STATUS "matlab_release_version = ${matlab_release_version}")

if (${Matlab_ROOT_DIR} MATCHES "(\\${matlab_release_name}|/${matlab_release_name})$")
message(STATUS "matches!!!")
else()
message(STATUS "does NOT match")
endif()

endfunction()

set(MATLAB_ADDITIONAL_VERSIONS "R2023b=23.2")
Expand Down

0 comments on commit 12be6a7

Please sign in to comment.