@@ -30,6 +30,11 @@ set(UE4SS_Game_DEFINITIONS UE_GAME)
3030set (UE4SS_CasePreserving_DEFINITIONS ${UE4SS_Game_DEFINITIONS} WITH_CASE_PRESERVING_NAME)
3131set (UE4SS_LessEqual421_DEFINITIONS ${UE4SS_Game_DEFINITIONS} FNAME_ALIGN8)
3232
33+ # Target type flags (can be customized per target)
34+ set (UE4SS_Game_FLAGS "" )
35+ set (UE4SS_CasePreserving_FLAGS ${UE4SS_Game_FLAGS} )
36+ set (UE4SS_LessEqual421_FLAGS ${UE4SS_Game_FLAGS} )
37+
3338# Configuration type definitions (UE4-style)
3439set (UE4SS_Debug_DEFINITIONS UE_BUILD_DEBUG)
3540set (UE4SS_Dev_DEFINITIONS UE_BUILD_DEVELOPMENT STATS)
@@ -75,9 +80,10 @@ function(ue4ss_initialize_project)
7580 set (CONFIGURATION_TYPES ${UE4SS_CONFIGURATION_TYPES} PARENT_SCOPE)
7681 set (PLATFORM_TYPES ${UE4SS_PLATFORM_TYPES} PARENT_SCOPE)
7782
78- # Set up definitions for each type
83+ # Set up definitions and flags for each type
7984 foreach (target_type ${UE4SS_TARGET_TYPES} )
8085 set (${target_type} _DEFINITIONS ${UE4SS_${target_type} _DEFINITIONS} PARENT_SCOPE)
86+ set (${target_type} _FLAGS ${UE4SS_${target_type} _FLAGS} PARENT_SCOPE)
8187 endforeach ()
8288
8389 foreach (config_type ${UE4SS_CONFIGURATION_TYPES} )
@@ -90,9 +96,6 @@ function(ue4ss_initialize_project)
9096 set (${platform_type} _VARS ${UE4SS_${platform_type} _VARS} PARENT_SCOPE)
9197 endif ()
9298 endforeach ()
93-
94- # Initialize compiler flags
95- ue4ss_initialize_compiler_flags()
9699endfunction ()
97100
98101# Initializes compiler flags based on configuration
0 commit comments