I am trying to specify the
CMAKE_C_LINK_EXECUTABLE and the
CMAKE_CXX_LINK_EXECUTABLE variables in one of my toolchain files targetting MINGW32.
Any value specified for these two variables gets overwritten and therefore not considered at some point in the CMake config phase. It is even not considered when determining if my toolchain works.
I suspected that the problem resides somewhere in the
share directory of my CMake installation (Version 3.15), but none of my search results for the two aforementioned variables looks as if the values would be overwritten there. In all cases they concern other toolchains than the ones for Windows/MINGW32 builds.
Thanks for your help!