FindMatlab: no if(NOT EXIST) guard needed for file(MAKE_DIRECTORY)

This commit is contained in:
scivision committed 2023-08-27 18:25:55 -04:00
1 parent ef2a6c35c2
commit cf554750dd
1 file changed
+1 -3
+1 -3
View File
@@ -336,9 +336,7 @@ set(MATLAB_VERSIONS_MAPPING
# temporary folder for all Matlab runs
set(_matlab_temporary_folder ${CMAKE_BINARY_DIR}/Matlab)
if(NOT EXISTS "${_matlab_temporary_folder}")
file(MAKE_DIRECTORY "${_matlab_temporary_folder}")
endif()
file(MAKE_DIRECTORY "${_matlab_temporary_folder}")
#[=======================================================================[.rst:
.. command:: matlab_get_version_from_release_name