File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,10 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/cppgraphqlgen-functions.cmake)
9
9
if (GRAPHQL_UPDATE_SAMPLES )
10
10
update_graphql_schema_files (introspection schema.introspection.graphql Introspection introspection --introspection )
11
11
12
+ file (GLOB PRIVATE_HEADERS ${CMAKE_CURRENT_SOURCE_DIR} /*.h )
12
13
add_custom_command (
13
14
OUTPUT copied_introspection_schema_headers
14
- COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR} /*.h ${CMAKE_CURRENT_SOURCE_DIR} /../../include/graphqlservice/introspection/
15
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different ${PRIVATE_HEADERS} ${CMAKE_CURRENT_SOURCE_DIR} /../../include/graphqlservice/introspection/
15
16
COMMAND ${CMAKE_COMMAND} -E touch copied_introspection_schema_headers
16
17
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR} /introspection_schema_files
17
18
COMMENT "Updating IntrospectionSchema headers" )
@@ -20,7 +21,7 @@ if(GRAPHQL_UPDATE_SAMPLES)
20
21
DEPENDS copied_introspection_schema_headers )
21
22
endif ()
22
23
23
- file (GLOB SCHEMA_FILES ${CMAKE_CURRENT_SOURCE_DIR} /../../include/graphqlservice/introspection/*.h )
24
- install (FILES ${SCHEMA_FILES }
24
+ file (GLOB PUBLIC_HEADERS ${CMAKE_CURRENT_SOURCE_DIR} /../../include/graphqlservice/introspection/*.h )
25
+ install (FILES ${PUBLIC_HEADERS }
25
26
CONFIGURATIONS ${GRAPHQL_INSTALL_CONFIGURATIONS}
26
27
DESTINATION ${GRAPHQL_INSTALL_INCLUDE_DIR} /graphqlservice/introspection )
You can’t perform that action at this time.
0 commit comments