build: fix sys sources not being included in compilation

This commit is contained in:
2024-10-24 21:31:46 +01:00
parent e6419149ae
commit 901a60206f

View File

@@ -11,7 +11,7 @@ function(add_bluelib_module)
set(root_header include/blue/${module_name}.h) set(root_header include/blue/${module_name}.h)
file(GLOB headers include/blue/${module_name}/*.h) file(GLOB headers include/blue/${module_name}/*.h)
add_library(blue-${module_name}-obj OBJECT ${sources} ${root_header} ${headers}) add_library(blue-${module_name}-obj OBJECT ${sources} ${sys_sources} ${root_header} ${headers})
set_target_properties(blue-${module_name}-obj set_target_properties(blue-${module_name}-obj
PROPERTIES POSITION_INDEPENDENT_CODE ON) PROPERTIES POSITION_INDEPENDENT_CODE ON)