You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating CMakeLists while using c++ 20 modules with gcc-13
The part in cmake responsible for compiling modules will not set appropriate flags, and will not propagate target flags like -g.
Example of an error
note: C++20 ‘module’ only available with ‘-fmodules-ts’
warning: keyword ‘export’ is deprecated, and is ignored
I fixed it in my local copy of xmake with very dirty hack like so
This from cmakelists.lua 96x lines
`
for _, cmd in ipairs(cmds) do
local command = _get_command_string(cmd, outputdir)
if command then
if string.find(command, "g++") then
cmakelists:print(" COMMAND %s -fmodules-ts", command)
else
cmakelists:print(" COMMAND %s ", command)
end
end
end
`
The text was updated successfully, but these errors were encountered:
Xmake Version
v2.8.1+master.beafb2d5c
Operating System Version and Architecture
Ubuntu 22.04.3 LTS
Describe Bug
When generating CMakeLists while using c++ 20 modules with gcc-13
The part in cmake responsible for compiling modules will not set appropriate flags, and will not propagate target flags like -g.
Expected Behavior
Correctly set flags
Project Configuration
I use gcc-13
Additional Information and Error Logs
Example of an error
note: C++20 ‘module’ only available with ‘-fmodules-ts’
warning: keyword ‘export’ is deprecated, and is ignored
I fixed it in my local copy of xmake with very dirty hack like so
This from cmakelists.lua 96x lines
`
for _, cmd in ipairs(cmds) do
`
The text was updated successfully, but these errors were encountered: