aboutsummaryrefslogtreecommitdiff
path: root/ports/cppgraphqlgen/bigobj.patch
blob: 396dd58e6e126775cb6f95654ea5bd7c34886e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- CMakeLists.txt.orig	2019-04-11 10:26:38.546721500 -0500
+++ CMakeLists.txt	2019-04-11 10:27:19.863951400 -0500
@@ -34,6 +34,9 @@ add_executable(schemagen
   GraphQLTree.cpp
   GraphQLResponse.cpp
   SchemaGenerator.cpp)
+if(MSVC)
+  set_source_files_properties(GraphQLTree.cpp PROPERTIES COMPILE_FLAGS /bigobj)
+endif()
 target_link_libraries(schemagen PRIVATE taocpp::pegtl)
 target_include_directories(schemagen PRIVATE
   ${CMAKE_CURRENT_SOURCE_DIR}/include)