~maria-captains/maria/5.5-elenst

« back to all changes in this revision

Viewing changes to cmake/install_macros.cmake

  • Committer: Elena Stepanova
  • Date: 2014-04-03 13:56:00 UTC
  • Revision ID: elenst@wheezy-64.home-20140403135600-easr71rbibbmjihj
MDEV-6016 Packaging error with cmake 2.8.12 and greater

Avoid CPack complaints when a pdb file is missing for a static library
(patch from Vladislav Vaintroub)

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
    IF(NOT comp)
61
61
      SET(comp Debuginfo_archive_only) # not in MSI
62
62
    ENDIF()
63
 
    INSTALL(FILES ${pdb_location} DESTINATION ${ARG_INSTALL_LOCATION} COMPONENT ${comp})
 
63
        IF(type MATCHES "STATIC")
 
64
          # PDB for static libraries might be unsupported http://public.kitware.com/Bug/view.php?id=14600
 
65
          SET(opt OPTIONAL)
 
66
        ENDIF()
 
67
    INSTALL(FILES ${pdb_location} DESTINATION ${ARG_INSTALL_LOCATION} COMPONENT ${comp} ${opt})
64
68
  ENDFOREACH()
65
69
  ENDIF()
66
70
ENDFUNCTION()