diff options
author | Mateusz Zych <mte.zych@gmail.com> | 2018-10-25 00:34:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-29 17:40:47 (GMT) |
commit | bd9bfc644954a48b1bf7ea18fc260a1231840671 (patch) | |
tree | 983bc115307da95ae78550b515d26ae324274359 /Modules/CMakeCUDACompiler.cmake.in | |
parent | 0033676796748bd8fe00f3f96d3470405cdb94fe (diff) | |
download | CMake-bd9bfc644954a48b1bf7ea18fc260a1231840671.zip CMake-bd9bfc644954a48b1bf7ea18fc260a1231840671.tar.gz CMake-bd9bfc644954a48b1bf7ea18fc260a1231840671.tar.bz2 |
MSVC: Respect CMAKE_RC_COMPILER and CMAKE_MT in vs_link_{dll,exe}
CMake commands vs_link_dll and vs_link_exe, performing linking on MSVC,
are responsible for calling resource compiler and manifest tool.
Before this commit, both of these tools were called directly, with the
expectation that they are available in the `PATH`. This has been fixed
by respecting CMake variables `CMAKE_RC_COMPILER` and `CMAKE_MT`
defining paths to these tools.
Fixes: #17804
Diffstat (limited to 'Modules/CMakeCUDACompiler.cmake.in')
-rw-r--r-- | Modules/CMakeCUDACompiler.cmake.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeCUDACompiler.cmake.in b/Modules/CMakeCUDACompiler.cmake.in index e1e1d33..feb3e79 100644 --- a/Modules/CMakeCUDACompiler.cmake.in +++ b/Modules/CMakeCUDACompiler.cmake.in @@ -28,3 +28,4 @@ set(CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES "@CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES@ set(CMAKE_CUDA_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "@CMAKE_CUDA_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES@") set(CMAKE_LINKER "@CMAKE_LINKER@") +set(CMAKE_MT "@CMAKE_MT@") |