Browse Source

Always define winversion

pull/6864/head
obligaron 2 years ago committed by Anders Jenbo
parent
commit
4c7f60eaea
  1. 6
      CMake/Platforms.cmake
  2. 2
      CMake/platforms/windows.cmake

6
CMake/Platforms.cmake

@ -1,7 +1,3 @@
if(WIN32)
include(platforms/windows)
endif()
if(HAIKU)
include(platforms/haiku)
endif()
@ -35,6 +31,8 @@ elseif(TARGET_PLATFORM STREQUAL "miyoo_mini")
include(platforms/miyoo_mini)
elseif(TARGET_PLATORM STREQUAL "windows9x")
include(platforms/windows9x)
elseif(WIN32)
include(platforms/windows)
endif()
if(NINTENDO_SWITCH)

2
CMake/platforms/windows.cmake

@ -10,6 +10,8 @@ list(APPEND DEVILUTIONX_PLATFORM_LINK_LIBRARIES
wininet
)
add_definitions(-DWINVER=0x0601 -D_WIN32_WINDOWS=0x0601 -D_WIN32_WINNT=0x0601)
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
list(APPEND DEVILUTIONX_PLATFORM_COMPILE_OPTIONS "/W3" "/Zc:__cplusplus" "/utf-8")
list(APPEND DEVILUTIONX_PLATFORM_COMPILE_DEFINITIONS _CRT_SECURE_NO_WARNINGS)

Loading…
Cancel
Save