1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-16 16:19:10 +00:00

Updates CMakeLists.txt to avoid recreating vdate.c if nothing has changed

Creating vdate.c/vdate.o should not be done unconditionally.  It is only
necessary to recreate it if one of the input files has changed.
This commit is contained in:
Nick Briggs 2024-11-19 15:20:44 -08:00
parent 13cbc33da3
commit 578b26547a

View File

@ -438,9 +438,9 @@ SET(MAIKO_HDRS
inc/z2defs.h
)
ADD_CUSTOM_TARGET(gen-vdate
ADD_CUSTOM_COMMAND(OUTPUT vdate.c
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/bin/mkvdate > vdate.c
BYPRODUCTS vdate.c
DEPENDS ${MAIKO_SRCS} ${MAIKO_HDRS} ${MAIKO_DISPLAY_X11_SRCS} ${MAIKO_DISPLAY_X11_HDRS} ${MAIKO_DISPLAY_SDL_SRCS} ${MAIKO_DISPLAY_SDL_HDRS}
)
ADD_EXECUTABLE(lde src/ldeboot.c src/unixfork.c)