diff --git a/UE4SS/CMakeLists.txt b/UE4SS/CMakeLists.txt index e97121239..164b2f8e8 100644 --- a/UE4SS/CMakeLists.txt +++ b/UE4SS/CMakeLists.txt @@ -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 $ $) # 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 diff --git a/UVTD/CMakeLists.txt b/UVTD/CMakeLists.txt index 61ad66959..bdb3808f5 100644 --- a/UVTD/CMakeLists.txt +++ b/UVTD/CMakeLists.txt @@ -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 $) # 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