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

5ca1d3d5 GenerateExportHeader: support exporting from OBJECT libraries
This commit is contained in:
Brad King 2014-07-07 08:54:37 -04:00 committed by CMake Topic Stage
commit f1626aa101
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()