diff options
author | Brad King <brad.king@kitware.com> | 2016-02-17 20:14:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-02-17 20:20:56 (GMT) |
commit | 1911cda03efc71f97e610e0b593282c835f2d4f4 (patch) | |
tree | 129dd8351099b867552fd11819f30496dddfd378 /Tests/RunCMake/install | |
parent | 6ccc307053f03c4c48a2cb9d5795f91d341a5c39 (diff) | |
download | CMake-1911cda03efc71f97e610e0b593282c835f2d4f4.zip CMake-1911cda03efc71f97e610e0b593282c835f2d4f4.tar.gz CMake-1911cda03efc71f97e610e0b593282c835f2d4f4.tar.bz2 |
FindCUDA: Fix regression under Visual Studio generators
Since commit v3.5.0-rc1~47^2 (FindCUDA: Support special characters in
path, 2016-01-15) our add_custom_command calls use VERBATIM so that
CMake will automatically quote special characters correctly. However,
this breaks the special `$(VCInstallDir)` placeholder used with Visual
Studio generators. Since we do not support preservation of such
placeholders with VERBATIM (see issue #15001) we must fall back to not
using VERBATIM when the placeholder is used.
A better fix would be to stop using `$(VCInstallDir)` and use the value
of `CMAKE_${CUDA_C_OR_CXX}_COMPILER` instead, but that will require
additional semantic and documentation changes. For now simply fix the
regression with the above approach.
Reported-by: Stephen Sorley <Stephen.Sorley@jhuapl.edu>
Diffstat (limited to 'Tests/RunCMake/install')
0 files changed, 0 insertions, 0 deletions