diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-11-19 16:42:39 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-11-19 16:50:52 (GMT) |
commit | 7224eb5185f6cbd3ce244e8ea5f6ec89d5a517f9 (patch) | |
tree | b54457b0cb0020d0c92d2387a24067c5abb811e9 /Modules/UseSWIG.cmake | |
parent | c468f983c000a853fa009cdc2f62d88c91f54540 (diff) | |
download | CMake-7224eb5185f6cbd3ce244e8ea5f6ec89d5a517f9.zip CMake-7224eb5185f6cbd3ce244e8ea5f6ec89d5a517f9.tar.gz CMake-7224eb5185f6cbd3ce244e8ea5f6ec89d5a517f9.tar.bz2 |
UseSWIG: ensure directory for depfile exists
When `Visual Studio` and `Xcode` generators are used, directory for depfile
is not implicitely created by CMake when OUTFILE_DIR option is used.
Fixes: #22932
Diffstat (limited to 'Modules/UseSWIG.cmake')
-rw-r--r-- | Modules/UseSWIG.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index 5c8f152..b48c33c 100644 --- a/Modules/UseSWIG.cmake +++ b/Modules/UseSWIG.cmake @@ -676,7 +676,7 @@ function(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile) ${swig_custom_products} ${swig_cleanup_command} # Let's create the ${outdir} at execution time, in case dir contains $(OutDir) - COMMAND "${CMAKE_COMMAND}" -E make_directory ${outdir} ${outfiledir} + COMMAND "${CMAKE_COMMAND}" -E make_directory "${workingdir}" "${outdir}" "${outfiledir}" ${swig_timestamp_command} COMMAND "${CMAKE_COMMAND}" -E env "SWIG_LIB=${SWIG_DIR}" "${SWIG_EXECUTABLE}" "-${SWIG_MODULE_${name}_SWIG_LANGUAGE_FLAG}" |