Browse Source

Merge topic 'dev/export-from-obj-libs'

5ca1d3d5 GenerateExportHeader: support exporting from OBJECT libraries
Brad King 11 years ago
parent
commit
f1626aa101
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Modules/GenerateExportHeader.cmake

+ 1 - 0
Modules/GenerateExportHeader.cmake

@@ -363,6 +363,7 @@ function(GENERATE_EXPORT_HEADER TARGET_LIBRARY)
   get_property(type TARGET ${TARGET_LIBRARY} PROPERTY TYPE)
   if(NOT ${type} STREQUAL "STATIC_LIBRARY"
       AND NOT ${type} STREQUAL "SHARED_LIBRARY"
+      AND NOT ${type} STREQUAL "OBJECT_LIBRARY"
       AND NOT ${type} STREQUAL "MODULE_LIBRARY")
     message(WARNING "This macro can only be used with libraries")
     return()