diff options
author | Brad King <brad.king@kitware.com> | 2021-04-05 18:02:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-04-05 18:36:34 (GMT) |
commit | c3d0b25514bef51f6f17da15470c852194a99b68 (patch) | |
tree | 6872e4ca4fb7f53b11f185422d667531987742b1 | |
parent | 8c525d7e16f7613ffc2fb5eb15b78b799dcd5982 (diff) | |
download | CMake-c3d0b25514bef51f6f17da15470c852194a99b68.zip CMake-c3d0b25514bef51f6f17da15470c852194a99b68.tar.gz CMake-c3d0b25514bef51f6f17da15470c852194a99b68.tar.bz2 |
UseSWIG: Transform swig depfile to match Ninja generator paths
Since commit 89b01b04fa (UseSWIG: use swig tool to generate
dependencies, 2021-01-12, v3.20.0-rc1~120^2) we use a tool-provided
depfile to extract dependencies under the Ninja generator. Enable
`CMP0116` to ensure depfile paths are translated to match what the Ninja
generator writes to the build manfiest.
Fixes: #22029
-rw-r--r-- | Modules/UseSWIG.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake index b1e0576..6073125 100644 --- a/Modules/UseSWIG.cmake +++ b/Modules/UseSWIG.cmake @@ -343,6 +343,8 @@ cmake_policy(PUSH) cmake_policy (SET CMP0012 NEW) # IN_LIST operator cmake_policy (SET CMP0057 NEW) +# Ninja generator normalizes custom command depfile paths +cmake_policy (SET CMP0116 NEW) set(SWIG_CXX_EXTENSION "cxx") set(SWIG_EXTRA_LIBRARIES "") |