Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 5, 2011, 5:31:25 PM (13 years ago)
Author:
rgrieder
Message:

Added MSVC option to install the *.pdb debug symbols files as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/cmake/tools/TargetUtilities.cmake

    r8351 r8405  
    354354      )
    355355    ENDIF()
     356    IF(INSTALL_PDB_FILES) # MSVC specific: install debug symbols files
     357      FOREACH(_config RelForDevs RelWithDebInfo)
     358        GET_TARGET_PROPERTY(_location ${_target_name} LOCATION_${_config})
     359        # Get absolute location without dll/exe extension
     360        STRING(REGEX REPLACE "^(.+)\\.(dll|exe)$" "\\1" _location_we ${_location})
     361        IF(_arg_MODULE)
     362          INSTALL(FILES ${_location_we}.pdb
     363            DESTINATION ${MODULE_INSTALL_DIRECTORY}
     364            CONFIGURATIONS ${_config}
     365          )
     366        ELSE()
     367          INSTALL(FILES ${_location_we}.pdb
     368            DESTINATION ${RUNTIME_INSTALL_DIRECTORY}
     369            CONFIGURATIONS ${_config}
     370          )
     371        ENDIF()
     372      ENDFOREACH(_config)
     373    ENDIF()
    356374  ENDIF()
    357375
Note: See TracChangeset for help on using the changeset viewer.