fix OB_ENABLE_UNITY spelling mistakes

This commit is contained in:
wenxingsen
2022-04-13 14:35:09 +08:00
committed by LINxiansheng
parent 9eabc6a452
commit e1fd4ed9ed
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ endfunction()
function(ob_set_subtarget target group)
list(APPEND "${target}_cache_objects_" ${ARGN})
set("${target}_cache_objects_" ${${target}_cache_objects_} PARENT_SCOPE)
if (OB_ENALBE_UNITY)
if (OB_ENABLE_UNITY)
set(i 0)
set(group_id 0)
set(ob_sub_objects "")
@ -41,7 +41,7 @@ set(unity_after [[
function(ob_add_target target)
if(ARGC EQUAL 1)
add_library(${target} OBJECT "${${target}_cache_objects_}")
if (OB_ENALBE_UNITY)
if (OB_ENABLE_UNITY)
set_target_properties(${target} PROPERTIES UNITY_BUILD ON)
set_target_properties(${target} PROPERTIES UNITY_BUILD_CODE_AFTER_INCLUDE "${unity_after}")
set_target_properties(${target} PROPERTIES UNITY_BUILD_MODE GROUP)