BuildSystem: link libraries when they change

This also fixed the need for manual linkin on firt build
This commit is contained in:
Bananymous
2023-05-31 22:40:15 +03:00
parent 14982c137a
commit cb359a05dc
7 changed files with 7 additions and 11 deletions

View File

@@ -8,8 +8,7 @@ set(SOURCES
add_executable(yes ${SOURCES})
target_compile_options(yes PUBLIC -O2 -g)
add_dependencies(yes libc-install)
target_link_options(yes PUBLIC -nodefaultlibs -lc)
target_link_libraries(yes PUBLIC libc)
add_custom_target(yes-install
COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/yes ${BANAN_BIN}/