Skip to content

Commit 9648d61

Browse files
committed
[REFACT] Added manifest to resource file. Disable generation of the default one
1 parent cabf915 commit 9648d61

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ target_link_libraries ( ${PROJECT_NAME} ${M_PESIEVE} ${M_PARAMKIT} "psapi.lib" "
117117
add_dependencies( ${PROJECT_NAME} ${M_PESIEVE} ${M_PARAMKIT} )
118118
target_compile_definitions(${PROJECT_NAME} PUBLIC -DUNICODE)
119119
target_compile_definitions(${M_PARAMKIT} PUBLIC -DUNICODE)
120+
121+
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
122+
target_link_options( ${PROJECT_NAME} PRIVATE "/MANIFEST:NO")
123+
endif()
124+
120125
#install
121126
INSTALL( TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX} COMPONENT ${PROJECT_NAME} )
122127

hh_res.rc

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
#include "resources.h"
33
#include <windows.h>
44

5+
/////////////////////////////////////////////////////////////////////////////
6+
//
7+
// Application Manifest
8+
//
9+
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "hollows_hunter.manifest"
10+
11+
/////////////////////////////////////////////////////////////////////////////
12+
//
13+
// Application Version
14+
//
515
#define VER_COMPANYNAME_STR "Hashereware (hashereware.com)"
616
#define VER_FILETYPE VFT_APP
717
#define VER_FILESUBTYPE VFT2_UNKNOWN

hollows_hunter.manifest

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<file name="USERENV.dll" loadFrom="%SystemRoot%\System32\"></file>
1515
<file name="VERSION.dll" loadFrom="%SystemRoot%\System32\"></file>
1616
<file name="oleaut32.dll" loadFrom="%SystemRoot%\System32\"></file>
17-
<file name="oleaut32.dll" loadFrom="%SystemRoot%\System32\"></file>
1817
<file name="bcrypt.dll" loadFrom="%SystemRoot%\System32\"></file>
1918
<file name="bcryptprimitives.dll" loadFrom="%SystemRoot%\System32\"></file>
2019
<trustInfo

0 commit comments

Comments
 (0)