@@ -1065,20 +1065,19 @@ function _add_target(cmakelists, target, outputdir)
1065
1065
cmakelists :print (" # target" )
1066
1066
1067
1067
-- is phony target?
1068
- local targetkind = target :kind ()
1069
1068
if target :is_phony () then
1070
1069
return _add_target_phony (cmakelists , target )
1071
- elseif targetkind == " binary " then
1070
+ elseif target : is_binary () then
1072
1071
_add_target_binary (cmakelists , target , outputdir )
1073
- elseif targetkind == " static " then
1072
+ elseif target : is_static () then
1074
1073
_add_target_static (cmakelists , target , outputdir )
1075
- elseif targetkind == " shared " then
1074
+ elseif target : is_shared () then
1076
1075
_add_target_shared (cmakelists , target , outputdir )
1077
- elseif targetkind == ' headeronly ' then
1076
+ elseif target : is_headeronly () then
1078
1077
_add_target_headeronly (cmakelists , target )
1079
1078
_add_target_include_directories (cmakelists , target , outputdir )
1080
1079
return
1081
- elseif targetkind == ' moduleonly ' then
1080
+ elseif target : is_moduleonly () then
1082
1081
_add_target_moduleonly (cmakelists , target )
1083
1082
return
1084
1083
else
@@ -1113,7 +1112,7 @@ function _add_target(cmakelists, target, outputdir)
1113
1112
-- add target warnings
1114
1113
_add_target_warnings (cmakelists , target )
1115
1114
1116
- -- add target exceptions
1115
+ -- add target exceptions
1117
1116
_add_target_exceptions (cmakelists , target )
1118
1117
1119
1118
-- add target languages
0 commit comments