Skip to content

Commit

Permalink
extract release from MATLAB_ADDITIONAL_VERSIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Nov 22, 2023
1 parent f332797 commit 693fe09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion matlab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ set(MATLAB_ADDITIONAL_VERSIONS "R2023b=23.2")
set(Matlab_ROOT_DIR "C:/Program Files/MATLAB/R2023b")
message(STATUS "MATLAB_ADDITIONAL_VERSOINS = ${MATLAB_ADDITIONAL_VERSIONS}")
message(STATUS "Matlab_ROOT_DIR = ${Matlab_ROOT_DIR}")
message(STATUS "Test")
find_package(Matlab REQUIRED)

# ARROW_SHARED_LIB
Expand Down
5 changes: 4 additions & 1 deletion matlab/tools/cmake/BuildMatlabArrowInterface.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,17 @@ function print_find_matlab_variables()
endfunction()

function(set_matlab_variables)
set(MATLAB)
string(FIND "${MATLAB_ADDITIONAL_VERSIONS}" "=" equal_char_pos)
message(STATUS "equal_char_pos = ${equal_char_pos}")

endfunction()

set(MATLAB_ADDITIONAL_VERSIONS "R2023b=23.2")
set(Matlab_ROOT_DIR "C:/Program Files/MATLAB/R2023b")
message(STATUS "MATLAB_ADDITIONAL_VERSOINS = ${MATLAB_ADDITIONAL_VERSIONS}")
message(STATUS "Matlab_ROOT_DIR = ${Matlab_ROOT_DIR}")
find_package(Matlab REQUIRED)
set_matlab_variables()

message(STATUS "MATLAB_ADDITIONAL_VERSOINS = ${MATLAB_ADDITIONAL_VERSIONS}")
message(STATUS "Matlab_ROOT_DIR = ${Matlab_ROOT_DIR}")
Expand Down

0 comments on commit 693fe09

Please sign in to comment.