CMAKE_MSVCIDE_RUN_PATH should be changed to support other generators
Newer MSVC versions are able to and seemingly use Ninja generator by default: https://devblogs.microsoft.com/cppblog/cmake-support-in-visual-studio-whats-new-in-2017-15-3-update/
For example - CMake projects opened directly from Visual Studio 2017 tend to use Ninja 1> Command line: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\ENTERPRISE\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe -G "Ninja" -DCMAKE_INSTALL_PREFIX:PATH="C:\Users...
Unfortunately this makes the only reasonable way of specifying own-built library path for custom_command
useless, since CMAKE_MSVCIDE_RUN_PATH
is ignored if generators other than Visual Studio ones are used. Evaluating RUN_PATH should depend on operating system rather than generator, since there is more than one kind of generator on Windows that needs this.