Userspace: create_program creates proper cmake files again

This commit is contained in:
Bananymous 2023-06-02 18:42:25 +03:00
parent e96efea2fb
commit 3a5d6914ba
1 changed files with 1 additions and 3 deletions

View File

@ -17,9 +17,7 @@ set(SOURCES
add_executable($PROGRAM_NAME \${SOURCES})
target_compile_options($PROGRAM_NAME PUBLIC -O2 -g)
add_dependencies($PROGRAM_NAME libc-install)
target_link_options($PROGRAM_NAME PUBLIC -nodefaultlibs)
target_link_libraries($PROGRAM_NAME PUBLIC \${BANAN_LIB}/libc.a)
target_link_libraries($PROGRAM_NAME PUBLIC libc)
add_custom_target($PROGRAM_NAME-install
COMMAND cp \${CMAKE_CURRENT_BINARY_DIR}/$PROGRAM_NAME \${BANAN_BIN}/