From 04a96c6f19ac2bc1b28409da37227c6aabe2cb72 Mon Sep 17 00:00:00 2001 From: silverqx Date: Tue, 9 Jan 2024 14:21:32 +0100 Subject: [PATCH] cmake enhanced TinyResourceAndManifest.cmake - added support for MODULE_LIBRARY --- cmake/CommonModules/TinyResourceAndManifest.cmake | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmake/CommonModules/TinyResourceAndManifest.cmake b/cmake/CommonModules/TinyResourceAndManifest.cmake index fb835319d..49efec451 100644 --- a/cmake/CommonModules/TinyResourceAndManifest.cmake +++ b/cmake/CommonModules/TinyResourceAndManifest.cmake @@ -15,8 +15,9 @@ ${TINY_UNPARSED_ARGUMENTS}") # The static archive doesn't need an RC or manifest file if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows" OR - (NOT target_type STREQUAL "EXECUTABLE" AND - NOT target_type STREQUAL "SHARED_LIBRARY") + NOT (target_type STREQUAL "EXECUTABLE" OR + target_type STREQUAL "SHARED_LIBRARY" OR + target_type STREQUAL "MODULE_LIBRARY") ) return() endif() @@ -107,7 +108,7 @@ ${TINY_UNPARSED_ARGUMENTS}") # Manifest file (injected through the RC file on MinGW) if(NOT MINGW) # Obtain extension by target type - .exe or .dll - if(target_type STREQUAL "SHARED_LIBRARY") + if(target_type STREQUAL "SHARED_LIBRARY" OR target_type STREQUAL "MODULE_LIBRARY") set(tiny_original_extension "${CMAKE_SHARED_LIBRARY_SUFFIX}") elseif(target_type STREQUAL "EXECUTABLE") set(tiny_original_extension "${CMAKE_EXECUTABLE_SUFFIX}")