Skip to content

Commit d720bcb

Browse files
committed
Rename introspection/*.h copy target/sentinel
1 parent e0202d5 commit d720bcb

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ target_link_libraries(graphqlservice PUBLIC
342342
if(GRAPHQL_UPDATE_SAMPLES)
343343
# Even though this target doesn't build IntrospectionSchema.cpp, it still
344344
# depends on IntrospectionSchema.h for some enum definitions.
345-
add_dependencies(graphqlservice update_introspection_headers)
345+
add_dependencies(graphqlservice copy_introspection_schema_headers)
346346
endif()
347347

348348
if(GRAPHQL_UPDATE_VERSION)

src/introspection/CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,16 @@ if(GRAPHQL_UPDATE_SAMPLES)
1010
update_graphql_schema_files(introspection schema.introspection.graphql Introspection introspection --introspection)
1111

1212
add_custom_command(
13-
OUTPUT updated_introspection_schema_headers
13+
OUTPUT copied_introspection_schema_headers
1414
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/*.h ${CMAKE_CURRENT_SOURCE_DIR}/../../include/graphqlservice/introspection/
15-
COMMAND ${CMAKE_COMMAND} -E touch updated_introspection_schema_headers
15+
COMMAND ${CMAKE_COMMAND} -E touch copied_introspection_schema_headers
1616
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/introspection_schema_files
1717
COMMENT "Updating IntrospectionSchema headers")
1818

19-
add_custom_target(update_introspection_headers ALL
20-
DEPENDS updated_introspection_schema_headers)
19+
add_custom_target(copy_introspection_schema_headers ALL
20+
DEPENDS copied_introspection_schema_headers)
2121
endif()
2222

23-
set_property(DIRECTORY APPEND
24-
PROPERTY CMAKE_CONFIGURE_DEPENDS introspection_schema_files)
2523
file(GLOB SCHEMA_FILES ${CMAKE_CURRENT_SOURCE_DIR}/../../include/graphqlservice/introspection/*.h)
2624
install(FILES ${SCHEMA_FILES}
2725
CONFIGURATIONS ${GRAPHQL_INSTALL_CONFIGURATIONS}

0 commit comments

Comments
 (0)