diff options
author | Brad King <brad.king@kitware.com> | 2020-01-10 15:50:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-01-10 16:40:34 (GMT) |
commit | 09721ca0787e3753e6b294c9bd57ca39ef91c230 (patch) | |
tree | 6fd39e5f3d6ecc9b9a047d35828e23aab8b2c897 /Source/cmMakefile.cxx | |
parent | c40229968cec39590ccdf54402625c83b44581a0 (diff) | |
download | CMake-09721ca0787e3753e6b294c9bd57ca39ef91c230.zip CMake-09721ca0787e3753e6b294c9bd57ca39ef91c230.tar.gz CMake-09721ca0787e3753e6b294c9bd57ca39ef91c230.tar.bz2 |
target_link_libraries: Fix out-of-dir calls with debug/optimized keywords
In commit a1ad0a699b (target_link_libraries: Allow use with targets in
other directories, 2018-09-07, v3.13.0-rc1~94^2) we added use of `<...>`
to encode a directory id, but the closing `>` can incorrectly terminate
a surrounding generator expression early. Encode the directory id using
`(...)` instead.
Fixes: #20202
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index fa7bce1..79cf5a1 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -139,7 +139,7 @@ cmDirectoryId cmMakefile::GetDirectoryId() const // If we ever need to expose this to CMake language code we should // add a read-only property in cmMakefile::GetProperty. char buf[32]; - sprintf(buf, "<%p>", + sprintf(buf, "(%p)", static_cast<void const*>(this)); // cast avoids format warning return std::string(buf); } |