Skip to content
This repository was archived by the owner on Feb 17, 2020. It is now read-only.
This repository was archived by the owner on Feb 17, 2020. It is now read-only.

Support for CMAKE_COMPILER_IS_GNUCC in sugar_generate_warning_flags #7

Description

@0x47

Is there any particular reason not to support plain C compiler in the sugar_generate_warning_flags function? I changed line 28 from

set(is_gcc ${CMAKE_COMPILER_IS_GNUCXX})

to

set(is_gcc ${CMAKE_COMPILER_IS_GNUCXX} OR ${CMAKE_COMPILER_IS_GNUCC})

and it and it seems to work just fine so far.

Thanks for the nice module!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions