Skip to content

Commit f94fd43

Browse files
committed
Fix the dependencies and move the bigobj flag to the linked library
1 parent 4ae4dbc commit f94fd43

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

samples/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ endif()
7676
add_library(separategraphql
7777
today/SeparateToday.cpp
7878
$<TARGET_OBJECTS:separateschema>)
79+
add_dependencies(separategraphql separateschema)
7980
target_link_libraries(separategraphql PUBLIC graphqlservice)
8081
target_include_directories(separategraphql PUBLIC
8182
$<TARGET_PROPERTY:separateschema,INCLUDE_DIRECTORIES>
@@ -98,7 +99,6 @@ if(GRAPHQL_BUILD_TESTS)
9899
${CMAKE_CURRENT_SOURCE_DIR}/../include
99100
${CMAKE_CURRENT_SOURCE_DIR}/../PEGTL/include
100101
unified)
101-
add_bigobj_flag(unifiedschema)
102102

103103
if(GRAPHQL_UPDATE_SAMPLES)
104104
# wait for the sample update to complete
@@ -108,8 +108,10 @@ if(GRAPHQL_BUILD_TESTS)
108108
add_library(unifiedgraphql
109109
today/UnifiedToday.cpp
110110
$<TARGET_OBJECTS:unifiedschema>)
111+
add_dependencies(unifiedgraphql unifiedschema)
111112
target_link_libraries(unifiedgraphql PUBLIC graphqlservice)
112113
target_include_directories(unifiedgraphql PUBLIC
113114
$<TARGET_PROPERTY:unifiedschema,INCLUDE_DIRECTORIES>
114115
today)
116+
add_bigobj_flag(unifiedgraphql)
115117
endif()

0 commit comments

Comments
 (0)