Skip to content

CI: Windows build fails at CMake configure with "non-target-directive" errors #762

Closed

Description

@danmar

Since the windows-11-arm runner image was updated (image windows-11-vs2026-arm64, version 20261112.217.1), the Windows CI jobs fail while CMake is configuring, before anything is compiled. This affects every PR, for example #761. The workflow last passed on master on 2026-11-11 (79c4663), with the older image.

The error=dev option is deprecated.  Use -Werror=author instead.
...
CMake Error (non-target-directive) at CMakeLists.txt:15 (add_definitions):
  Use of non-target directives is not recommended.  Consider
  target_compile_definitions, target_compile_options, or
  target_include_directories instead.
...
-- Configuring incomplete, errors occurred!

Activity

  1. added a commit that references this issue on Nov 16, 2026
    31989dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions