Skip to content

Commit

Permalink
Cleanup debug print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Nov 22, 2023
1 parent 98b4231 commit 4c21f2a
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions matlab/tools/cmake/BuildMatlabArrowInterface.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,11 @@ 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}")
get_filename_component(matlab_root_dir_release ${Matlab_ROOT_DIR} NAME)
message(STATUS "matlab_root_dir_release = ${matlab_root_dir_release}")

if (NOT ${matlab_root_dir_release} STREQUAL ${matlab_release_name})
message(STATUS "Does not match!!!")
message(FATAL_ERROR "Unknown MATLAB Release")
endif()

Expand All @@ -70,17 +65,13 @@ 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)
print_find_matlab_variables()
message(STATUS "Set variables")
set_matlab_variables()
message(STATUS "After set")
print_find_matlab_variables()

message(STATUS "MATLAB_ADDITIONAL_VERSOINS = ${MATLAB_ADDITIONAL_VERSIONS}")
message(STATUS "Matlab_ROOT_DIR = ${Matlab_ROOT_DIR}")
if (${Matlab_VERSION_STRING} STREQUAL "unknown")
message(STATUS "findMatlab failed to set Matlab_VERSION_STRING")
set_matlab_variables()
print_find_matlab_variables()
endif()


set(MATLAB_ARROW_LIBMEXCLASS_CLIENT_FETCH_CONTENT_NAME libmexclass)
# TODO: Consider using SSH URL for the Git Repository when
Expand Down

0 comments on commit 4c21f2a

Please sign in to comment.