mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Drop CMake 3.4 support for MSVS
Windows users don't have old versions of CMake from their repositories, Visual Studio installs CMake 3.9.
This commit is contained in:
parent
acb052e97d
commit
8b1559ae14
|
@ -753,10 +753,10 @@ if(CLIENT)
|
||||||
|
|
||||||
if(TARGET_OS STREQUAL "windows")
|
if(TARGET_OS STREQUAL "windows")
|
||||||
set(CLIENT_ICON "other/icons/DDNet.rc")
|
set(CLIENT_ICON "other/icons/DDNet.rc")
|
||||||
if(MINGW)
|
if(NOT MINGW)
|
||||||
set(CLIENT_MANIFEST "other/manifest/dpimanifest.rc")
|
set(CLIENT_MANIFEST "other/manifest/DDNet.manifest")
|
||||||
else()
|
else()
|
||||||
set(CLIENT_MANIFEST)
|
set(CLIENT_MANIFEST "other/manifest/DDNet.rc")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
set(CLIENT_ICON)
|
set(CLIENT_ICON)
|
||||||
|
@ -1302,19 +1302,3 @@ foreach(target ${TARGETS_DEP})
|
||||||
target_compile_options(${target} PRIVATE /W0)
|
target_compile_options(${target} PRIVATE /W0)
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
if(MSVC)
|
|
||||||
if(CMAKE_VERSION VERSION_LESS 3)
|
|
||||||
message(WARNING "CMake version 3 or newer is required to enable dpi awareness")
|
|
||||||
elseif(CMAKE_VERSION VERSION_LESS 3.4)
|
|
||||||
add_custom_command(
|
|
||||||
TARGET ${CLIENT_EXECUTABLE}
|
|
||||||
POST_BUILD
|
|
||||||
COMMAND
|
|
||||||
"mt.exe" -manifest \"${CMAKE_SOURCE_DIR}/other/manifest/dpimanifest.manifest\" -outputresource:\"${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${CLIENT_EXECUTABLE}.exe\"\;\#1
|
|
||||||
COMMENT "Adding DPI awareness"
|
|
||||||
)
|
|
||||||
else()
|
|
||||||
target_sources(${TARGET_CLIENT} PRIVATE other/manifest/dpimanifest.manifest)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
2
other/manifest/DDNet.rc
Normal file
2
other/manifest/DDNet.rc
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#include "winuser.h"
|
||||||
|
1 RT_MANIFEST DDNet.manifest
|
|
@ -1,2 +0,0 @@
|
||||||
#include "winuser.h"
|
|
||||||
1 RT_MANIFEST dpimanifest.manifest
|
|
Loading…
Reference in a new issue