Skip to content

Commit bcbc92a

Browse files
committed
feat: add winver define to cmake
1 parent 4ae285b commit bcbc92a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmake/modules/ProjectConfig.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ function(ue4ss_initialize_project)
7575

7676
# Unicode support
7777
list(APPEND TARGET_COMPILE_DEFINITIONS _UNICODE UNICODE)
78-
78+
79+
# Windows version targeting (Windows 10 and above)
80+
if(WIN32)
81+
list(APPEND TARGET_COMPILE_DEFINITIONS _WIN32_WINNT=0x0A00 WINVER=0x0A00)
82+
endif()
83+
7984
# Export to parent scope
8085
set(TARGET_COMPILE_DEFINITIONS ${TARGET_COMPILE_DEFINITIONS} PARENT_SCOPE)
8186

0 commit comments

Comments
 (0)