Skip to content

Commit d976ba6

Browse files
authored
Merge pull request #15 from toge/add-bigobj-flag
add bigobj flag to solve fatal error in Visual Studio
2 parents 447a8de + f7def80 commit d976ba6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ target_link_libraries(${OATPP_THIS_MODULE_NAME}
4747
PUBLIC ${PostgreSQL_LIBRARIES}
4848
)
4949

50+
if(MSVC)
51+
target_compile_options(${OATPP_THIS_MODULE_NAME} PRIVATE "/bigobj")
52+
endif()
53+
5054
#######################################################################################################
5155
## install targets
5256

0 commit comments

Comments
 (0)