mirror of
https://github.com/libretro/devilutionX.git
synced 2026-11-07 10:25:57 -10:00
Always define winversion
This commit is contained in:
1 parent
8cb167ac98
commit
4c7f60eaea
2 files changed
+4
-4
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user