revert the changes in CMakeLists.txt
When we do not regenerate the generated_raw_tracer.cc,
h2olog tests fails, but it's totally fine.
cf.
@@ -926,13 +926,18 @@ IF (WITH_H2OLOG)
"include/h2o/version.h"
)
- SET(H2OLOG_RAW_TRACER_FILE "${CMAKE_CURRENT_SOURCE_DIR}/src/h2olog/generated_raw_tracer.cc")
+ SET(H2OLOG_GEN_DEPS
+ "h2o-probes.d"
+ "deps/quicly/quicly-probes.d"
+ "deps/quicly/include/quicly.h"
+ )
ADD_CUSTOM_COMMAND(
- OUTPUT "${H2OLOG_RAW_TRACER_FILE}"
- COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/src/h2olog/misc/gen_raw_tracer.py" "${CMAKE_CURRENT_SOURCE_DIR}" "${H2OLOG_RAW_TRACER_FILE}"
+ OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/src/h2olog/generated_raw_tracer.cc"
+ COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/src/h2olog/misc/gen_raw_tracer.py" "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/src/h2olog/generated_raw_tracer.cc"
+ DEPENDS ${H2OLOG_GEN_DEPS} "${CMAKE_CURRENT_SOURCE_DIR}/src/h2olog/misc/gen_raw_tracer.py"
)
- LIST(APPEND H2OLOG_SOURCE_FILES "${H2OLOG_RAW_TRACER_FILE}")
+ LIST(APPEND H2OLOG_SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/h2olog/generated_raw_tracer.cc")
LINK_DIRECTORIES("${LIBBCC_LIBRARY_DIRS}")
ADD_EXECUTABLE(h2olog ${H2OLOG_SOURCE_FILES})
