[cmake-developers] How to get cmake to install pdb files for targets too?
Claus Klein
claus.klein at arcormail.de
Tue Mar 20 03:05:56 EDT 2018
Hi, I am wondering why pdb file are not installed with a library target in MS VS2017 generated projects when building the Debug config variant?
Is this relay necessary:
install(FILES $<TARGET_PDB_FILE:${TARGET_NAME}> DESTINATION bin OPTIONAL)
see too https://stackoverflow.com/questions/40860435/how-to-get-cmake-to-install-pdb-files-for-targets <https://stackoverflow.com/questions/40860435/how-to-get-cmake-to-install-pdb-files-for-targets>
Why ist that install command not enough:
install(TARGETS example
EXPORT ExampleTargets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
With regards
Claus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake-developers/attachments/20180320/31a73d66/attachment.html>
More information about the cmake-developers
mailing list