summaryrefslogtreecommitdiffstats
path: root/Modules/GenerateExportHeader.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-07-03 14:23:40 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2014-07-03 14:23:40 (GMT)
commit5ca1d3d59c9a0c7df7db335fe225896480e4873f (patch)
tree39f1ee11f8796de289930ec0135072a2f9504149 /Modules/GenerateExportHeader.cmake
parent6d1ad670771271bbdd7e3ff3bfa19474049cc139 (diff)
downloadCMake-5ca1d3d59c9a0c7df7db335fe225896480e4873f.zip
CMake-5ca1d3d59c9a0c7df7db335fe225896480e4873f.tar.gz
CMake-5ca1d3d59c9a0c7df7db335fe225896480e4873f.tar.bz2
GenerateExportHeader: support exporting from OBJECT libraries
Diffstat (limited to 'Modules/GenerateExportHeader.cmake')
-rw-r--r--Modules/GenerateExportHeader.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake
index 66d300a..f00b577 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()