Skip to content

Respect CMAKE_RC_COMPILER & CMAKE_MT in vs_link_dll/exe

Mateusz Zych requested to merge mtezych/cmake:master into master

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 via PATH mechanism.
This incorrect behavior has been fixed by respecting CMake Cache variables
CMAKE_RC_COMPILER and CMAKE_MT defining paths to these tools.

Fixes: #17804 (closed)
Topic-rename: msvc-custom-rc-mt

Edited by Brad King

Merge request reports