fix build error for ccls build
This commit is contained in:
committed by
wangzelin.wzl
parent
efbed6ee8a
commit
b29a1bfe75
@ -79,9 +79,16 @@ 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)
|
||||
@ -90,10 +97,12 @@ 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_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})
|
||||
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})
|
||||
endfunction()
|
||||
|
||||
Reference in New Issue
Block a user