[scn] fix failure of mittest after refresh feature scn

This commit is contained in:
obdev
2022-11-28 01:46:42 +00:00
committed by ob-robot
parent 49a02f3304
commit 54b64a7263
1898 changed files with 255804 additions and 280809 deletions

View File

@ -79,16 +79,9 @@ function(config_target_unity target)
endif()
endfunction()
function(config_ccls_flag target)
if (OB_BUILD_CCLS)
target_compile_definitions(${target} PRIVATE CCLS_LASY_OFF)
endif()
endfunction()
function(ob_add_object_target target)
add_library(${target} OBJECT "${${target}_cache_objects_}")
config_target_unity(${target})
config_ccls_flag(${target})
endfunction()
function(ob_lib_add_target target)
@ -97,12 +90,10 @@ function(ob_lib_add_target target)
target_link_libraries(${target} PUBLIC oblib_base)
list(APPEND oblib_object_libraries ${target})
set(oblib_object_libraries "${oblib_object_libraries}" CACHE INTERNAL "observer library list")
config_ccls_flag(${target})
endfunction()
function(ob_add_new_object_target target target_objects_list)
message(STATUS "ob_add_new_object_target ${target}")
add_library(${target} OBJECT EXCLUDE_FROM_ALL "${${target_objects_list}_cache_objects_}")
config_target_unity(${target})
config_ccls_flag(${target})
function(ob_add_new_object_target target_name target_objects_list)
message(STATUS "ob_add_new_object_target ${target_name}")
add_library(${target_name} OBJECT EXCLUDE_FROM_ALL "${${target_objects_list}_cache_objects_}")
config_target_unity(${target_name})
endfunction()