Hack to allow toolchains to pass flags to mingw

This commit is contained in:
Zachary Michaels 2014-08-06 12:42:24 -04:00 committed by Riccardo Spagni
parent 9c848ceae7
commit a31d6bb9fb

View file

@ -99,7 +99,7 @@ else()
endif() endif()
if(MINGW) if(MINGW)
set(WARNINGS "${WARNINGS} -Wno-error=unused-value -Wno-error=unused-but-set-variable") set(WARNINGS "${WARNINGS} -Wno-error=unused-value -Wno-error=unused-but-set-variable")
set(MINGW_FLAG "-DWIN32_LEAN_AND_MEAN") set(MINGW_FLAG "${MINGW_FLAG} -DWIN32_LEAN_AND_MEAN")
include_directories(SYSTEM src/platform/mingw) include_directories(SYSTEM src/platform/mingw)
else() else()
set(MINGW_FLAG "") set(MINGW_FLAG "")