From 72ff4788d9cddd7036c5488ed5ae75da2dfb6eb9 Mon Sep 17 00:00:00 2001 From: Sarah Gilmore Date: Wed, 22 Nov 2023 16:25:16 -0500 Subject: [PATCH] Add missing backslash --- ci/scripts/matlab_build.sh | 2 +- matlab/tools/cmake/MatlabConfig.cmake | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/scripts/matlab_build.sh b/ci/scripts/matlab_build.sh index 196941c51e60a..610bf8c764717 100755 --- a/ci/scripts/matlab_build.sh +++ b/ci/scripts/matlab_build.sh @@ -30,6 +30,6 @@ cmake \ -B ${build_dir} \ -G Ninja \ -D CMAKE_INSTALL_PREFIX=${install_dir} \ - -D MATLAB_ADD_INSTALL_DIR_TO_SEARCH_PATH=OFF + -D MATLAB_ADD_INSTALL_DIR_TO_SEARCH_PATH=OFF \ -D MATLAB_RELEASE_VERSION=23.2 cmake --build ${build_dir} --config Release --target install diff --git a/matlab/tools/cmake/MatlabConfig.cmake b/matlab/tools/cmake/MatlabConfig.cmake index 1241f9f58b6b4..de50c142ca692 100644 --- a/matlab/tools/cmake/MatlabConfig.cmake +++ b/matlab/tools/cmake/MatlabConfig.cmake @@ -40,6 +40,8 @@ macro(MatlabConfigure) find_package(Matlab REQUIRED) if (${Matlab_VERSION_STRING} STREQUAL "unknown") message(STATUS "Matlab_VERSION_STRING is unknown") + message(STATUS "MATLAB_RELEASE_VERSION = {MATLAB_RELEASE_VERSION}") + if (NOT DEFINED MATLAB_RELEASE_VERSION) # Temporarily require users to supply MATLAB_RELEASE_VERSION if find_package(Matlab) # fails to derive the version from the root directory. We can probably determine this