Hi! I’m experiencing some strange behavior with CMake’s Visual Studio makefile generator.
I have a project that includes Python3’s libraries through the normal methods, and it successfully finds both the debug and normal version of the libraries (
optimized;C:/Program Files/Python38/libs/python38.lib;debug;C:/Program Files/Python38/libs/python38_d.lib)
However, when I run cmake with the VS (16 2019) generator, in the additional dependencies section,
C:/Program Files/Python38/libs/python38_d.lib is included twice and
C:/Program Files/Python38/libs/python38.lib is never included.
This results in this LNK1104 linker error. If I manually change one of the
_d's to the optimized version, it compiles fine, so it’s not a back-breaking issue but it is rather inconvenient.