Skip to content

Commit

Permalink
Extract matlab_release_version
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Nov 22, 2023
1 parent 279c632 commit 7e20c2e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion matlab/tools/cmake/BuildMatlabArrowInterface.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ function(print_find_matlab_variables)
endfunction()

function(set_matlab_variables)
string(LENGTH ${MATLAB_ADDITIONAL_VERSIONS} matlab_additional_versions_length)
string(FIND "${MATLAB_ADDITIONAL_VERSIONS}" "=" equal_char_pos)
message(STATUS "equal_char_pos = ${equal_char_pos}")

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}")
endfunction()

set(MATLAB_ADDITIONAL_VERSIONS "R2023b=23.2")
Expand Down

0 comments on commit 7e20c2e

Please sign in to comment.