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

This commit is contained in:
scivision
2023-08-27 18:20:31 -04:00
parent ef2a6c35c2
commit cf554750dd

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