diff options
author | Brad King <brad.king@kitware.com> | 2013-05-24 13:19:58 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-05-24 13:19:58 (GMT) |
commit | a2e80aaa822eee5ee5e27857f711d18857b7aa74 (patch) | |
tree | d2ec02939f30df2f22869db1a72469816fc61f7f | |
parent | dc85291c57be92e6f4a9b86ae87d5639fbb4dd6f (diff) | |
parent | 7ffef5024aa92a9802785c2e02abfd13249e6160 (diff) | |
download | CMake-a2e80aaa822eee5ee5e27857f711d18857b7aa74.zip CMake-a2e80aaa822eee5ee5e27857f711d18857b7aa74.tar.gz CMake-a2e80aaa822eee5ee5e27857f711d18857b7aa74.tar.bz2 |
Merge topic 'geh-MODULE-export'
7ffef50 GenerateExportHeader: Allow use of of this macro with MODULEs.
-rw-r--r-- | Modules/GenerateExportHeader.cmake | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake index 892ebc6..80475a8 100644 --- a/Modules/GenerateExportHeader.cmake +++ b/Modules/GenerateExportHeader.cmake @@ -307,11 +307,9 @@ endmacro() function(GENERATE_EXPORT_HEADER TARGET_LIBRARY) get_property(type TARGET ${TARGET_LIBRARY} PROPERTY TYPE) - if(${type} STREQUAL "MODULE") - message(WARNING "This macro should not be used with libraries of type MODULE") - return() - endif() - if(NOT ${type} STREQUAL "STATIC_LIBRARY" AND NOT ${type} STREQUAL "SHARED_LIBRARY") + if(NOT ${type} STREQUAL "STATIC_LIBRARY" + AND NOT ${type} STREQUAL "SHARED_LIBRARY" + AND NOT ${type} STREQUAL "MODULE_LIBRARY") message(WARNING "This macro can only be used with libraries") return() endif() |