This doesn't help. It will generate:
`cc1: warning: command line option '-Wno-sign-promo' is valid for C++/ObjC++ but not for C [enabled by default]`

I think think only way to fix this warning is
`string(REPLACE "-Wsign-promo" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")`