GenerateExportHeader: support exporting from OBJECT libraries

This commit is contained in:
Ben Boeckel 2014-07-03 10:23:40 -04:00
parent 6d1ad67077
commit 5ca1d3d59c
1 changed files with 1 additions and 0 deletions

View File

@ -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()