TARGET_PDB_FILE not allowed for IMPORTED targets
When using $<TARGET_PDB_FILE:...>
on an imported target, the following error appears:
TARGET_PDB_FILE not allowed for IMPORTED targets
I think it would be useful to add (imported) properties to make this genex legal.
e.g. IMPORTED_PDB_LOCATION
and IMPORTED_PDB_LOCATION_<CONFIG>
Also, it would be useful to add a DEBUG
target type to install(TARGETS)
.
So the following becomes possible:
install(TARGETS myapp RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" DEBUG DESTINATION "${CMAKE_INSTALL_BINDIR}")
This install target type would also be useful for static libraries, and elf libraries: debug fission allows .so libraries to be split in an executable dynamic library and debug-only library.