Skip to content

Commit

Permalink
cmake: add_dependencies must have at least 2 arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Dec 28, 2024
1 parent 2664d36 commit f1232de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ macro(add_sdl_test_executable TARGET)
set_property(TARGET ${TARGET} PROPERTY C_STANDARD 90)
set_property(TARGET ${TARGET} PROPERTY C_EXTENSIONS FALSE)
endif()
add_dependencies(${TARGET} ${AST_DEPENDS})
if(AST_DEPENDS)
add_dependencies(${TARGET} ${AST_DEPENDS})
endif()

list(APPEND SDL_TEST_EXECUTABLES ${TARGET})
set_property(TARGET ${TARGET} PROPERTY SDL_NOTRACKMEM ${AST_NOTRACKMEM})
Expand Down

0 comments on commit f1232de

Please sign in to comment.