OUTPUT_NAME target property is inconsistent when it contains directory separators
When building a shared library on windows, setting the OUTPUT_NAME, or the RUNTIME_OUTPUT_NAME is handled inconsistently when the name has a a directory separator in it.
For example:
set_target_properties( libname PROPERTIES
OUTPUT_NAME "imageformats/${PROJECT_NAME}"
FOLDER SharedLibs
)
For the PDB file (debug build), it will generate the file libname/Debug/imageformats/libname.pdb
, as well as libname/Debug/imageformats/libname.exp
and libname/Debug/imageformats/libname.lib
However for the actual DLL, it generates libname/Debug/libname.dll ignoring the directory prefix I added.
That said, I wouldnt need to do this if I could turn off "Debug" or set the configuration name directory to be something besides debug.
THis library is a plugin that by Qt standards is required to be in a specific subdirectory (image formats). Im using the VS_DEBUGGER_ENVIRONMENT on the executable to point to the $<TARGET_FILE_DIR:libname>
but I need it to be in a imageformats subdirectory.