GenerateExportHeader: support exporting from OBJECT libraries
This commit is contained in:
parent
6d1ad67077
commit
5ca1d3d59c
|
@ -363,6 +363,7 @@ function(GENERATE_EXPORT_HEADER TARGET_LIBRARY)
|
||||||
get_property(type TARGET ${TARGET_LIBRARY} PROPERTY TYPE)
|
get_property(type TARGET ${TARGET_LIBRARY} PROPERTY TYPE)
|
||||||
if(NOT ${type} STREQUAL "STATIC_LIBRARY"
|
if(NOT ${type} STREQUAL "STATIC_LIBRARY"
|
||||||
AND NOT ${type} STREQUAL "SHARED_LIBRARY"
|
AND NOT ${type} STREQUAL "SHARED_LIBRARY"
|
||||||
|
AND NOT ${type} STREQUAL "OBJECT_LIBRARY"
|
||||||
AND NOT ${type} STREQUAL "MODULE_LIBRARY")
|
AND NOT ${type} STREQUAL "MODULE_LIBRARY")
|
||||||
message(WARNING "This macro can only be used with libraries")
|
message(WARNING "This macro can only be used with libraries")
|
||||||
return()
|
return()
|
||||||
|
|
Loading…
Reference in New Issue