Browse Source

cmake: custom generate-XXX targets must depend on outputs

Anonymous Maarten 7 months ago
parent
commit
53aaf8c26b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/CMakeLists.txt

+ 1 - 1
test/CMakeLists.txt

@@ -233,7 +233,7 @@ function(files2headers OUTPUT)
         endif()
     endforeach()
     set(${OUTPUT} "${outputs}" PARENT_SCOPE)
-    add_custom_target(generate-${OUTPUT} DEPENDS ${ARGN})
+    add_custom_target(generate-${OUTPUT} DEPENDS ${outputs})
 endfunction()
 
 files2headers(gamepad_image_headers