2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-21 17:37:32 +01:00

scripts: waifulib: cmake: filter out -MMD compiler flag from generated CMake flags

This commit is contained in:
Alibek Omarov 2024-11-20 07:53:12 +03:00
parent a56f512dc3
commit d1f70bfe2c

View File

@ -307,10 +307,13 @@ class CMake(object):
flags = env.CFLAGS
if len(flags):
# remove -MMD flag from gccdeps.py as it's already inserted by CMake
flags = [f for f in flags if not f == '-MMD']
content += 'set(CMAKE_C_FLAGS "%s")\n' % (' '.join(flags))
flags = env.CXXFLAGS
if len(flags):
flags = [f for f in flags if not f == '-MMD']
content += 'set(CMAKE_CXX_FLAGS "%s")\n' % (' '.join(flags))
if len(self.tgens):