Skip to content

MSVC Command line error D8021 : invalid numeric argument '/Wextra' #1024

@fjwbarnard

Description

@fjwbarnard

CMake build with Visual Studio 2019 is failing with Command line error D8021 : invalid numeric argument '/Wextra' since v1.14

Seems like it is caused by change cf90b37 since add_c_compiler_flag(-Wextra) has been around for a long time:

add_c_compiler_flag(-Wextra)
and VS2019 CMake build worked fine on v1.13 and lower

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions