Skip to content

Commit

Permalink
Fixed C++ mods
Browse files Browse the repository at this point in the history
  • Loading branch information
UE4SS committed Sep 27, 2023
1 parent eb8bf07 commit af46151
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion UE4SS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,16 @@ set(${TARGET}_Sources

add_library(${TARGET} SHARED ${UE4SS_Sources})

target_compile_options(${TARGET} PUBLIC "${PRIVATE_COMPILE_OPTIONS}")
target_link_options(${TARGET} PUBLIC "${PRIVATE_LINK_OPTIONS}")

# Enabling c++20 support
target_compile_features(${TARGET} PUBLIC cxx_std_20)

target_include_directories(${TARGET} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/generated_include>)

# First party static build -> START
target_compile_definitions(${TARGET} PUBLIC
target_compile_definitions(${TARGET} PRIVATE
RC_UE4SS_EXPORTS
RC_ASM_HELPER_BUILD_STATIC
RC_FILE_BUILD_STATIC
Expand Down
5 changes: 4 additions & 1 deletion UVTD/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ set(${TARGET}_Sources

add_executable(${TARGET} ${${TARGET}_Sources})

target_compile_options(${TARGET} PUBLIC "${PRIVATE_COMPILE_OPTIONS}")
target_link_options(${TARGET} PUBLIC "${PRIVATE_LINK_OPTIONS}")

# Enabling c++20 support
target_compile_features(${TARGET} PUBLIC cxx_std_20)

target_include_directories(${TARGET} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)

# First party static build -> START
target_compile_definitions(${TARGET} PUBLIC
target_compile_definitions(${TARGET} PRIVATE
RC_FILE_BUILD_STATIC
RC_DYNAMIC_OUTPUT_BUILD_STATIC
RC_SINGLE_PASS_SIG_SCANNER_BUILD_STATIC
Expand Down

0 comments on commit af46151

Please sign in to comment.