diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-11-19 17:42:39 +0100 |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-11-19 17:50:52 +0100 |
commit | 7224eb5185f6cbd3ce244e8ea5f6ec89d5a517f9 (patch) | |
tree | b54457b0cb0020d0c92d2387a24067c5abb811e9 /Tests | |
parent | c468f983c000a853fa009cdc2f62d88c91f54540 (diff) | |
download | cmake-7224eb5185f6cbd3ce244e8ea5f6ec89d5a517f9.tar.gz |
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 'Tests')
-rw-r--r-- | Tests/UseSWIG/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/UseSWIG/CMakeLists.txt b/Tests/UseSWIG/CMakeLists.txt index f1b2f32148..6c0d5e483a 100644 --- a/Tests/UseSWIG/CMakeLists.txt +++ b/Tests/UseSWIG/CMakeLists.txt @@ -76,6 +76,7 @@ if(SWIG_FOUND AND NOT SWIG_VERSION VERSION_LESS "4.0.2" ${build_generator_args} --build-project TestBasicPython --build-options ${build_options} -DSWIG_USE_SWIG_DEPENDENCIES=ON + "-DSWIG_OUTFILE_DIR=${CMake_BINARY_DIR}/Tests/UseSWIG/BasicPython.Depfile" --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION> ) add_test(NAME UseSWIG.Depfile.BasicPerl COMMAND |