Only add warning and std flags if supported by compiler (cmake) #144

Merged
plicease merged 1 commits from solaris into master 2017-09-24 17:52:49 +00:00

1 Commits (master)

Author SHA1 Message Date
Graham Ollis 2d37abdab7 Only add warning and std flags if supported by compiler
This fixes errors like those reported in #143 on Solaris
(and probably other platforms where gcc is not the native
compiler):

c99: -W option with unknown program all

This only fixes it for cmake, but presumably similar checks
could be added for autoconf as well.
2017-09-23 15:27:30 -04:00