I have been experiencing a strange problem with CMake build generation on
Windows. I am using Ninja as my build tool, and my build.ninja had lines
like:
LINK_LIBRARIES = $<1:optimized C:\Users\James\AppData\Local\Programs\Python\Python38\libs\python38.lib >.lib # and so on...
It turns out that this is a quirk of CMake where generator expressions interact
poorly with target_link_libraries(). Quoting from the official docs