Merge pull request #15 from toge/add-bigobj-flag

add bigobj flag to solve fatal error in Visual Studio
This commit is contained in:
Leonid Stryzhevskyi 2021-12-28 03:01:05 +02:00 committed by GitHub
commit d976ba6950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,10 @@ target_link_libraries(${OATPP_THIS_MODULE_NAME}
PUBLIC ${PostgreSQL_LIBRARIES}
)
if(MSVC)
target_compile_options(${OATPP_THIS_MODULE_NAME} PRIVATE "/bigobj")
endif()
#######################################################################################################
## install targets