From 3f13959c68b6e0a632bcea20b2015c9aaaadfa5d Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sun, 16 Oct 2022 23:42:18 -0600 Subject: Kernel: Mark Version.h as a dependency of Kernel rather than ALL --- Kernel/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Kernel') diff --git a/Kernel/CMakeLists.txt b/Kernel/CMakeLists.txt index 1b575db4a5..d16a9a33d0 100644 --- a/Kernel/CMakeLists.txt +++ b/Kernel/CMakeLists.txt @@ -422,7 +422,7 @@ add_custom_command( OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Version.h" VERBATIM ) -add_custom_target(generate_version_header ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/Version.h") +add_custom_target(generate_version_header DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/Version.h") set(GENERATED_SOURCES "${CMAKE_CURRENT_BINARY_DIR}/Version.h") generate_state_machine(../Userland/Libraries/LibVT/StateMachine.txt ../Userland/Libraries/LibVT/EscapeSequenceStateMachine.h) @@ -670,7 +670,7 @@ add_link_options(LINKER:-z,notext) add_library(kernel_heap STATIC ${KERNEL_HEAP_SOURCES}) add_executable(Kernel ${SOURCES}) -add_dependencies(Kernel generate_EscapeSequenceStateMachine.h) +add_dependencies(Kernel generate_EscapeSequenceStateMachine.h generate_version_header) if (NOT "${SERENITY_ARCH}" STREQUAL "aarch64") add_custom_command( -- cgit v1.2.3