Skip to content

Commit

Permalink
fix(client): add bigobj to build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxoh committed Feb 7, 2024
1 parent ffbab1e commit 02f155f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ project(${TARGET_NAME})

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
set(CMAKE_BUILD_TYPE RelWithDebInfo)
set(CSHARP_MODULE_DEFS
set(CSHARP_MODULE_DEFS
# Compliation
-DCXX_COMPILER_ID="${CMAKE_CXX_COMPILER_ID}"
-D_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
Expand All @@ -34,17 +35,17 @@ endif()
if(DYNAMIC_BUILD)
set(SDK_PROJECT_NAME csharp-alt-sdk)
include(../cpp-sdk/CMakeLists.txt)

add_library(${TARGET_NAME} SHARED "${PROJECT_SOURCE_FILES}" "${CAPI_FILES}")
target_compile_definitions(${PROJECT_NAME} PRIVATE
target_compile_definitions(${PROJECT_NAME} PRIVATE
${CSHARP_MODULE_DEFS}
-DALTV_CSHARP_SHARED
)
include_directories(${TARGET_NAME} PRIVATE "src" "thirdparty" "..")
add_dependencies(${TARGET_NAME} csharp-alt-sdk)
else()
add_library(${TARGET_NAME}-static STATIC "${PROJECT_SOURCE_FILES}" "${CAPI_FILES}")
target_compile_definitions(${PROJECT_NAME}-static PRIVATE
target_compile_definitions(${PROJECT_NAME}-static PRIVATE
${CSHARP_MODULE_DEFS}
)
include_directories(${TARGET_NAME}-static PRIVATE "src" "thirdparty" ${ALTV_CSHARP_CPP_SDK})
Expand Down

0 comments on commit 02f155f

Please sign in to comment.