mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 01:45:19 +01:00
scripts: waifulib: cmake: filter out -MMD compiler flag from generated CMake flags
This commit is contained in:
parent
a56f512dc3
commit
d1f70bfe2c
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user