diff --git a/CMakeLists.txt b/CMakeLists.txt index 82e76696..8837fb58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -228,7 +228,8 @@ if(WIN32) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS - -D_WIN32_WINNT=0x500 + -DWINVER=0x0601 + -D_WIN32_WINNT=0x0601 -D_WIN32_IE=_WIN32_WINNT -DISOLATION_AWARE_ENABLED -DWIN32 diff --git a/res/CMakeLists.txt b/res/CMakeLists.txt index 216b4276..d5c50bcb 100644 --- a/res/CMakeLists.txt +++ b/res/CMakeLists.txt @@ -6,8 +6,9 @@ if(WIN32) ${CMAKE_CURRENT_BINARY_DIR}/win32/versioninfo.rc) set(rc_file ${CMAKE_CURRENT_BINARY_DIR}/resources.rc) - file(WRITE ${rc_file} "// Autogenerated; do not edit\n#include\n") - file(WRITE ${rc_file} "#include \"${CMAKE_CURRENT_BINARY_DIR}/win32/versioninfo.rc\"\n") + file(WRITE ${rc_file} "// Autogenerated; do not edit\n") + file(APPEND ${rc_file} "#include \n") + file(APPEND ${rc_file} "#include \"${CMAKE_CURRENT_BINARY_DIR}/win32/versioninfo.rc\"\n") function(add_resource name) set(source ${CMAKE_CURRENT_SOURCE_DIR}/${name}) @@ -116,8 +117,8 @@ endfunction() # Second, register all resources. if(WIN32) - add_resource(win32/icon.ico 4000 ICON) - add_resource(win32/manifest.xml APP_MANIFEST RT_MANIFEST) + add_resource(win32/icon.ico 4000 ICON) + add_resource(win32/manifest.xml 2 RT_MANIFEST) elseif(APPLE) add_iconset (cocoa/AppIcon.iconset) add_xib (cocoa/MainMenu.xib) diff --git a/res/win32/manifest.xml b/res/win32/manifest.xml index 22a78cc8..82834364 100644 --- a/res/win32/manifest.xml +++ b/res/win32/manifest.xml @@ -2,7 +2,7 @@ @@ -18,7 +18,7 @@ type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" - processorArchitecture="X86" + processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" />