diff --git a/port/libusb/CMakeLists.txt b/port/libusb/CMakeLists.txt index bf3fc9d3e..b969ee7a2 100644 --- a/port/libusb/CMakeLists.txt +++ b/port/libusb/CMakeLists.txt @@ -178,7 +178,7 @@ foreach(EXAMPLE_FILE ${EXAMPLES_C}) message("example ${EXAMPLE} -- with GATT DB") add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h - DEPENDS ${CMAKE_SOURCE_DIR}/${EXAMPLE}.gatt + DEPENDS ${CMAKE_SOURCE_DIR}/../../example/${EXAMPLE}.gatt COMMAND ${CMAKE_SOURCE_DIR}/../../tool/compile_gatt.py ARGS ${CMAKE_SOURCE_DIR}/../../example/${EXAMPLE}.gatt ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h ) diff --git a/test/pts/CMakeLists.txt b/test/pts/CMakeLists.txt index d881fa6bf..d9229eba9 100644 --- a/test/pts/CMakeLists.txt +++ b/test/pts/CMakeLists.txt @@ -198,7 +198,7 @@ foreach(EXAMPLE_FILE ${EXAMPLES_C}) message("PTS Tool: ${EXAMPLE} -- with GATT DB") add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h - DEPENDS ${CMAKE_SOURCE_DIR}/${EXAMPLE}.gatt + DEPENDS ${CMAKE_SOURCE_DIR}/../../example/${EXAMPLE}.gatt COMMAND ${CMAKE_SOURCE_DIR}/../../tool/compile_gatt.py ARGS ${CMAKE_SOURCE_DIR}/${EXAMPLE}.gatt ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h )