let add_submodule(h2olog) work
@@ -39,26 +39,26 @@ SET(SOURCE_FILES
)
ADD_CUSTOM_COMMAND(
- OUTPUT "${CMAKE_SOURCE_DIR}/quicly-probes.d"
- COMMAND curl -sLf 'https://raw.githubusercontent.com/h2o/h2o/${H2O_COMMIT}/deps/quicly/quicly-probes.d' >${CMAKE_SOURCE_DIR}/quicly-probes.d
+ OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/quicly-probes.d"
+ COMMAND curl -sLf 'https://raw.githubusercontent.com/h2o/h2o/${H2O_COMMIT}/deps/quicly/quicly-probes.d' >${CMAKE_CURRENT_SOURCE_DIR}/quicly-probes.d
)
-LIST(APPEND DTRACE_FILES "${CMAKE_SOURCE_DIR}/quicly-probes.d")
+LIST(APPEND DTRACE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/quicly-probes.d")
ADD_CUSTOM_COMMAND(
- OUTPUT "${CMAKE_SOURCE_DIR}/h2o-probes.d"
- COMMAND curl -sLf 'https://raw.githubusercontent.com/h2o/h2o/${H2O_COMMIT}/h2o-probes.d' >${CMAKE_SOURCE_DIR}/h2o-probes.d
+ OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/h2o-probes.d"
+ COMMAND curl -sLf 'https://raw.githubusercontent.com/h2o/h2o/${H2O_COMMIT}/h2o-probes.d' >${CMAKE_CURRENT_SOURCE_DIR}/h2o-probes.d
)
-LIST(APPEND DTRACE_FILES "${CMAKE_SOURCE_DIR}/h2o-probes.d")
+LIST(APPEND DTRACE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/h2o-probes.d")
ADD_CUSTOM_COMMAND(
- OUTPUT "${CMAKE_SOURCE_DIR}/generated-quic.cc"
- COMMAND "${CMAKE_SOURCE_DIR}/misc/gen-quic-bpf.py" "${CMAKE_SOURCE_DIR}" "${CMAKE_SOURCE_DIR}/generated-quic.cc"
+ OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/generated-quic.cc"
+ COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/misc/gen-quic-bpf.py" "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/generated-quic.cc"
DEPENDS ${DTRACE_FILES}
- DEPENDS "${CMAKE_SOURCE_DIR}/misc/gen-quic-bpf.py"
+ DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/misc/gen-quic-bpf.py"
)
-LIST(APPEND SOURCE_FILES "${CMAKE_SOURCE_DIR}/generated-quic.cc")
+LIST(APPEND SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/generated-quic.cc")
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
ADD_EXECUTABLE(h2olog ${SOURCE_FILES})
TARGET_LINK_LIBRARIES(h2olog ${LIBBCC_LIB})
