From 5ca1d3d59c9a0c7df7db335fe225896480e4873f Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 3 Jul 2014 10:23:40 -0400 Subject: [PATCH] GenerateExportHeader: support exporting from OBJECT libraries --- Modules/GenerateExportHeader.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake index 66d300afc..f00b577b4 100644 --- a/Modules/GenerateExportHeader.cmake +++ b/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()