diff options
| author | npc1054657282 <[email protected]> | 2025-07-13 22:57:04 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-13 22:57:04 +0800 |
| commit | 48117169d6fa7c63815c6c1bd102c73fb3c81e59 (patch) | |
| tree | 666aa93d38b6d01529f1a496d8722fe8039a09df /xmake/modules/package/tools/cmake.lua | |
| parent | bb92f25e6b397b5518b2a3f1d2e7a2b392d13ef2 (diff) | |
fix: the cmake module cannot get the option `cxxflags` correctly
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index 74c1b80f8..c27ab99bb 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -227,7 +227,7 @@ function _get_cxxflags(package, opt) table.join2(result, package:config("cxxflags")) table.join2(result, package:config("cxflags")) if opt.cxxflags then - table.join2(result, opt.cflags) + table.join2(result, opt.cxxflags) end if opt.cxflags then table.join2(result, opt.cxflags) |
