diff options
| author | ruki <[email protected]> | 2020-08-29 00:36:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-08-29 00:36:53 +0800 |
| commit | 641b15599a566db1ecfbbbe812e3e73c818fed33 (patch) | |
| tree | b383ad63b89aa4553680c7c01bd63486360ef612 /xmake/plugins/project/cmake/cmakelists.lua | |
| parent | 63d86afa2a79008f6f256b73d0ba919bb911144f (diff) | |
fix cmake minver
Diffstat (limited to 'xmake/plugins/project/cmake/cmakelists.lua')
| -rw-r--r-- | xmake/plugins/project/cmake/cmakelists.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua index 290e40d1e..52ff4cd58 100644 --- a/xmake/plugins/project/cmake/cmakelists.lua +++ b/xmake/plugins/project/cmake/cmakelists.lua @@ -381,6 +381,7 @@ function _add_target_link_options(cmakelists, target) local ldflags = _get_configs_from_target(target, "ldflags") local shflags = _get_configs_from_target(target, "shflags") if #ldflags > 0 or #shflags > 0 then + local cmake_minver = _get_cmake_minver() if cmake_minver:ge("3.13.0") then cmakelists:print("target_link_options(%s PRIVATE", target:name()) else |
