cmake: update for compatibility with CMake 4.0

This commit is contained in:
2026-03-22 13:11:10 +00:00
parent ac8f669e6b
commit 119a86b8e6
12 changed files with 36 additions and 32 deletions

View File

@@ -1,12 +1,14 @@
file(GLOB c_sources *.c *.h)
file(GLOB arch_sources arch/${CMAKE_SYSTEM_PROCESSOR}/*.S)
set_property(SOURCE ${arch_sources} PROPERTY LANGUAGE C)
add_executable(bootstrap ${c_sources} ${arch_sources})
target_link_libraries(bootstrap
libmango libc-core libc-malloc libc-pthread libfs-static liblaunch libxpc-static
libmango librosetta
libc-core libc-malloc libc-pthread
libfs-static
liblaunch
libxpc-static
interface::fs)
target_compile_options(bootstrap PRIVATE

View File

@@ -1,8 +1,6 @@
file(GLOB c_sources *.c *.h)
file(GLOB arch_sources arch/${CMAKE_SYSTEM_PROCESSOR}/*.S)
set_property(SOURCE ${arch_sources} PROPERTY LANGUAGE C)
add_executable(ld ${c_sources} ${arch_sources})
set_target_properties(ld PROPERTIES
POSITION_INDEPENDENT_CODE ON