From 40a562f26d01ea0eb979ba9caec974c923a5c573 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 14 Jul 2019 22:29:31 -0400 Subject: [PATCH] cmake: fix incorrect dependencies --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e0b9f921d5..f994496cea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2402,7 +2402,6 @@ add_custom_target(zig_build_libuserland ALL BYPRODUCTS "${LIBUSERLAND}" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" ) -add_custom_target(userland_target DEPENDS "${LIBUSERLAND}") add_executable(zig "${ZIG_MAIN_SRC}") set_target_properties(zig PROPERTIES @@ -2410,5 +2409,5 @@ set_target_properties(zig PROPERTIES LINK_FLAGS ${EXE_LDFLAGS} ) target_link_libraries(zig compiler "${LIBUSERLAND}") -add_dependencies(zig userland_target) +add_dependencies(zig zig_build_libuserland) install(TARGETS zig DESTINATION bin)