generate probes.d to the souce file dir to commit
@@ -37,20 +37,20 @@ SET(SOURCE_FILES
)
ADD_CUSTOM_COMMAND(
- OUTPUT "${CMAKE_BINARY_DIR}/quicly-probes.d"
- COMMAND curl -sLf 'https://raw.githubusercontent.com/h2o/h2o/master/deps/quicly/quicly-probes.d' >${CMAKE_BINARY_DIR}/quicly-probes.d
+ OUTPUT "${CMAKE_SOURCE_DIR}/quicly-probes.d"
+ COMMAND curl -sLf 'https://raw.githubusercontent.com/h2o/h2o/master/deps/quicly/quicly-probes.d' >${CMAKE_SOURCE_DIR}/quicly-probes.d
)
-LIST(APPEND DTRACE_FILES "${CMAKE_BINARY_DIR}/quicly-probes.d")
+LIST(APPEND DTRACE_FILES "${CMAKE_SOURCE_DIR}/quicly-probes.d")
ADD_CUSTOM_COMMAND(
- OUTPUT "${CMAKE_BINARY_DIR}/h2o-probes.d"
- COMMAND curl -sLf 'https://raw.githubusercontent.com/h2o/h2o/master/h2o-probes.d' >${CMAKE_BINARY_DIR}/h2o-probes.d
+ OUTPUT "${CMAKE_SOURCE_DIR}/h2o-probes.d"
+ COMMAND curl -sLf 'https://raw.githubusercontent.com/h2o/h2o/master/h2o-probes.d' >${CMAKE_SOURCE_DIR}/h2o-probes.d
)
-LIST(APPEND DTRACE_FILES "${CMAKE_BINARY_DIR}/h2o-probes.d")
+LIST(APPEND DTRACE_FILES "${CMAKE_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_BINARY_DIR}" "${CMAKE_SOURCE_DIR}/generated-quic.cc"
+ COMMAND "${CMAKE_SOURCE_DIR}/misc/gen-quic-bpf.py" "${CMAKE_SOURCE_DIR}" "${CMAKE_SOURCE_DIR}/generated-quic.cc"
DEPENDS ${DTRACE_FILES}
DEPENDS "${CMAKE_SOURCE_DIR}/misc/gen-quic-bpf.py"
)
