diff --git a/matlab/CMakeLists.txt b/matlab/CMakeLists.txt index 47d2acd613f8b..214adaab19165 100644 --- a/matlab/CMakeLists.txt +++ b/matlab/CMakeLists.txt @@ -126,17 +126,14 @@ else() set(MATLAB_BUILD_OUTPUT_DIR "${CMAKE_BINARY_DIR}") endif() +set(MATLAB_ADDITIONAL_VERSIONS "R2023b=23.2") +set(Matlab_ROOT_DIR "C:/Program Files/MATLAB/R2023b") + find_package(Arrow QUIET) if(NOT Arrow_FOUND) build_arrow() endif() -# MATLAB is Required -find_package(Matlab REQUIRED COMPONENTS MAIN_PROGRAM) - -message(STATUS "Mex Library: ${Matlab_MEX_LIBRARY}") -message(STATUS "Mex Include Folder: ${Matlab_INCLUDE_DIRS}") - # ARROW_SHARED_LIB # On Windows, this will be ARROW_HOME/bin/arrow.dll and on Linux and macOS, it is the arrow.so/dylib in the newly built arrow_shared library. if(NOT Arrow_FOUND) diff --git a/matlab/tools/cmake/BuildMatlabArrowInterface.cmake b/matlab/tools/cmake/BuildMatlabArrowInterface.cmake index 42f7788bcf2ce..cb746e08b1f8e 100644 --- a/matlab/tools/cmake/BuildMatlabArrowInterface.cmake +++ b/matlab/tools/cmake/BuildMatlabArrowInterface.cmake @@ -19,9 +19,6 @@ # Configure libmexclass FetchContent # ---------------------------------- -set(MATLAB_ADDITIONAL_VERSIONS "R2023b=23.2") -set(Matlab_ROOT_DIR "C:/Program Files/MATLAB/R2023b") - set(MATLAB_ARROW_LIBMEXCLASS_CLIENT_FETCH_CONTENT_NAME libmexclass) # TODO: Consider using SSH URL for the Git Repository when # libmexclass is accessible for CI without permission issues.