[CMake] Adding .pdb files to CPack (Visual Studio 7 generator)

Torsten Martinsen tma at gatehouse.dk
Tue Sep 18 10:38:08 EDT 2007


In a macro, I succesfully use
 
   INSTALL(
      TARGETS ${project}
      RUNTIME DESTINATION bin)

to add my .exe file to the list of files included by CPack. I also want
the .pdb file, so I tried
 
      INSTALL(
         FILES
${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${project}.pdb
         RUNTIME DESTINATION bin)

This, unfortunately, gives the error

	FILE INSTALL cannot find file
"C:/user/gh/ais/impl/build/cmake/vc7/ca/$(OutDir)/ca.pdb" to install.

Note that ${CMAKE_CFG_INTDIR} expands to "$(OutDir)" instead of e.g.
"Debug" as I had hoped.
 
-Torsten

This e-mail and any files sent with it contain information that may be privileged or confidential and is the property of the GateHouse Group. This information is intended solely for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use the message or any part thereof. If you have received this e-mail in error, please notify the sender immediately, and delete all copies of this message. In accordance with GateHouse Security Policy, e-mails sent or received may be monitored. 


More information about the CMake mailing list