diff --git a/indra/cmake/WinManifest.cmake b/indra/cmake/WinManifest.cmake index 39f4def75d..89ffad636d 100644 --- a/indra/cmake/WinManifest.cmake +++ b/indra/cmake/WinManifest.cmake @@ -1,17 +1,17 @@ # - Embeds a specific manifest file in a Windows binary # Defines the following: # EMBED_MANIFEST - embed manifest in a windows binary with mt -# Parameters - _target is the target file, type - 1 for EXE, 2 for DLL +# Parameters - _target is the target file, resourceid specifies the resource identifier - MACRO(EMBED_MANIFEST _target type) + MACRO(EMBED_MANIFEST _target resourceid) ADD_CUSTOM_COMMAND( TARGET ${_target} POST_BUILD COMMAND "mt.exe" ARGS -manifest \"${CMAKE_SOURCE_DIR}\\tools\\manifests\\compatibility.manifest\" - -inputresource:\"$\"\;\#${type} - -outputresource:\"$\"\;\#${type} + -inputresource:\"$\"\;\#${resourceid} + -outputresource:\"$\"\;\#${resourceid} COMMENT "Adding compatibility manifest to ${_target}" ) - ENDMACRO(EMBED_MANIFEST _target type) + ENDMACRO(EMBED_MANIFEST _target resourceid)