From 3f5d07ebd7ca6440b5acbb14a01e075252dc9b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gr=C3=A9goire?= Date: Fri, 18 Jul 2025 15:23:18 +0200 Subject: [PATCH] Fix embed dependency add_custom_command DEPENDS can only see the output of other commands or targets names, not the targets installation through ExternalProject_Add. Add the `embed` target (created by `ExternalProject_Add`) as a dependency for commands using the utility --- profiler/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/CMakeLists.txt b/profiler/CMakeLists.txt index bb44b1f8..d01731d3 100644 --- a/profiler/CMakeLists.txt +++ b/profiler/CMakeLists.txt @@ -49,7 +49,7 @@ function(Embed LIST NAME FILE) add_custom_command( OUTPUT data/${NAME}.cpp data/${NAME}.hpp COMMAND ${CMAKE_CURRENT_BINARY_DIR}/embed ${NAME} ${CMAKE_CURRENT_LIST_DIR}/${FILE} data/${NAME} - DEPENDS data ${CMAKE_CURRENT_BINARY_DIR}/embed ${CMAKE_CURRENT_LIST_DIR}/${FILE} + DEPENDS data embed ${CMAKE_CURRENT_LIST_DIR}/${FILE} ) list(APPEND ${LIST} data/${NAME}.cpp) return(PROPAGATE ${LIST})