diff options
| author | ruki <[email protected]> | 2021-02-18 00:49:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-02-18 00:49:42 +0800 |
| commit | 46e0f6a1adda408052ba5b87c244cedaae5f1d00 (patch) | |
| tree | be3ff982685afc14e7dab6f57d3801d2477ca629 /xmake/plugins/project/cmake/cmakelists.lua | |
| parent | 6417f5b6b8aa784dc5a734511365597d707ce8dc (diff) | |
rename targetkind to kind
Diffstat (limited to 'xmake/plugins/project/cmake/cmakelists.lua')
| -rw-r--r-- | xmake/plugins/project/cmake/cmakelists.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua index c207863b2..502b5bc51 100644 --- a/xmake/plugins/project/cmake/cmakelists.lua +++ b/xmake/plugins/project/cmake/cmakelists.lua @@ -476,7 +476,7 @@ function _add_target(cmakelists, target) cmakelists:print("# target") -- is phony target? - local targetkind = target:targetkind() + local targetkind = target:kind() if target:isphony() then return _add_target_phony(cmakelists, target) elseif targetkind == "binary" then @@ -486,7 +486,7 @@ function _add_target(cmakelists, target) elseif targetkind == "shared" then _add_target_shared(cmakelists, target) else - raise("unknown target kind %s", target:targetkind()) + raise("unknown target kind %s", target:kind()) end -- TODO export target headers (deprecated) |
