From ed4f8b72804d26684877da1ecfd1ccd803aa1f46 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sun, 9 May 2021 23:18:51 +0200 Subject: [PATCH] fix dependency on .gatt file in CMake builds --- port/libusb/CMakeLists.txt | 2 +- test/pts/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 )