Skip to content

[Bug] Intel oneAPI 2025.2 flag change #4797

@scivision

Description

@scivision

Describe the issue

Intel oneAPI 2025.2 introduces a new flag that emits warnings when building any project with googletest. This fails builds that have CMAKE_COMPILE_WARNING_AS_ERROR=1.

This is an environment regression, so we will provide a trivial patch for oneAPI 2025.2 or newer in #4798

Steps to reproduce the problem

git clone https://github.com/scivision/googletest-oneapi-demo

git switch main

cmake -Bbuild -DCMAKE_COMPILE_WARNING_AS_ERROR=1

cmake --build build

That will error with Intel oneAPI 2025.2 on Linux.

To use our patched googletest, do the following

# from googletest-oneapi-demo/ directory

git switch patch-oneapi

cmake -Bbuild -DCMAKE_COMPILE_WARNING_AS_ERROR=1

cmake --build build

That build will success on Intel oneAPI 2025.2 and previous oneAPI versions.

What version of GoogleTest are you using?

googletest 1.17.0 (or earlier, or HEAD)

What operating system and version are you using?

Linux Ubuntu 24.04 on GitHub Actions

What compiler and version are you using?

oneAPI 2025.2.0

What build system are you using?

CMake 3.31.6

Additional context

GitHub Actions logs showing failure before, and working after this patch are at https://github.com/scivision/googletest-oneapi-demo/wiki

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