summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscivision <scivision@users.noreply.github.com>2023-08-27 22:20:31 (GMT)
committerscivision <scivision@users.noreply.github.com>2023-08-27 22:25:55 (GMT)
commitcf554750dd1a85b8bcb3489e6673fb3dfe5160d9 (patch)
tree732ac74e7578cc9031939daf436fda98de4e207d
parentef2a6c35c2c044f9b4fe8fcdc2eabaff7fad5412 (diff)
downloadCMake-cf554750dd1a85b8bcb3489e6673fb3dfe5160d9.zip
CMake-cf554750dd1a85b8bcb3489e6673fb3dfe5160d9.tar.gz
CMake-cf554750dd1a85b8bcb3489e6673fb3dfe5160d9.tar.bz2
FindMatlab: no if(NOT EXIST) guard needed for file(MAKE_DIRECTORY)
-rw-r--r--Modules/FindMatlab.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/FindMatlab.cmake b/Modules/FindMatlab.cmake
index 3ab6bc1..4bacb1d 100644
--- a/Modules/FindMatlab.cmake
+++ b/Modules/FindMatlab.cmake
@@ -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