File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,12 @@ function(set_matlab_variables)
48
48
message (STATUS "matlab_release_name = ${matlab_release_name} " )
49
49
string (SUBSTRING ${MATLAB_ADDITIONAL_VERSIONS} 0 ${matlab_additional_versions_length} matlab_release_version)
50
50
message (STATUS "matlab_release_version = ${matlab_release_version} " )
51
+ get_filename_component (matlab_root_dir_release ${Matlab_ROOT_DIR} NAME )
52
+ message (STATUS "matlab_root_dir_release = ${matlab_root_dir_release} " )
51
53
52
- if (${Matlab_ROOT_DIR} MATCHES "(\\ ${matlab_release_name} |/${matlab_release_name} )$" )
53
- message (STATUS "matches!!!" )
54
- else ()
55
- message (STATUS "does NOT match" )
54
+ if (NOT ${matlab_root_dir_release} STREQUAL ${matlab_release_name} )
55
+ message (STATUS "Does not match!!!" )
56
+ message (FATAL_ERROR "Unknown MATLAB Release" );
56
57
endif ()
57
58
58
59
endfunction ()
You can’t perform that action at this time.
0 commit comments