diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-04-23 15:09:12 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-04-23 15:09:12 (GMT) |
commit | e3e005dbd8bcb64b20a0923078c3fed0e58cff2c (patch) | |
tree | 39076741b408f05e52bfa91f4cb88cf19c4b9203 /Tests/UseSWIG | |
parent | 15a148dec63d04f302b6c0b951104f8eb470ce1c (diff) | |
download | CMake-e3e005dbd8bcb64b20a0923078c3fed0e58cff2c.zip CMake-e3e005dbd8bcb64b20a0923078c3fed0e58cff2c.tar.gz CMake-e3e005dbd8bcb64b20a0923078c3fed0e58cff2c.tar.bz2 |
UseSWIG: use swig dependencies for Xcode generator
Diffstat (limited to 'Tests/UseSWIG')
-rw-r--r-- | Tests/UseSWIG/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/UseSWIG/CMakeLists.txt b/Tests/UseSWIG/CMakeLists.txt index d08c59c..f1b2f32 100644 --- a/Tests/UseSWIG/CMakeLists.txt +++ b/Tests/UseSWIG/CMakeLists.txt @@ -66,7 +66,8 @@ add_test(NAME UseSWIG.BasicPerl COMMAND --build-options ${build_options} --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION> ) -if(SWIG_FOUND AND NOT SWIG_VERSION VERSION_LESS "4.0.2") +if(SWIG_FOUND AND NOT SWIG_VERSION VERSION_LESS "4.0.2" + AND CMAKE_GENERATOR MATCHES "Make|Ninja|Xcode") add_test(NAME UseSWIG.Depfile.BasicPython COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION> --build-and-test |