diff options
| author | ruki <[email protected]> | 2024-08-20 23:36:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-08-20 23:36:19 +0800 |
| commit | de66ec45791dbc955905ce2ed2af34b3d426b0f7 (patch) | |
| tree | 5b6796713c20e51c134fae0c0dad48a571abfbcf | |
| parent | 4a647b14f86e336e178ba71b7c45c6a5e9e289d8 (diff) | |
improve to get flags
| -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 eb20f6647..d5e305c41 100644 --- a/xmake/plugins/project/cmake/cmakelists.lua +++ b/xmake/plugins/project/cmake/cmakelists.lua @@ -1030,8 +1030,8 @@ end -- add target link options function _add_target_link_options(cmakelists, target, outputdir) - local ldflags = _get_configs_from_target(target, "ldflags") - local shflags = _get_configs_from_target(target, "shflags") + local ldflags = _get_flags_from_target(target, "ldflags") + local shflags = _get_flags_from_target(target, "shflags") local toolnames = hashset.new() local function _add_target_link_options_for_linker(toolname) if #ldflags > 0 or #shflags > 0 then |
