We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
My C++ project (https://github.com/EFanZh/LeetCode/tree/master/c%2B%2B) fail to build after updating Google Test version because compiler generates C4275 warning.
Steps to reproduce the bug
On a Windows x64 OS:
Install vcpkg, CMake and Visual Studio 2019 with MSVC compiler.
Install Google Test with vcpkg install gtest --triplet x64-windows.
vcpkg install gtest --triplet x64-windows
Create a CMake project with two files:
CMakeLists.txt:
CMakeLists.txt
cmake_minimum_required(VERSION "3.15") project("foo") find_package("GTest" CONFIG REQUIRED) add_executable(foo main.cpp) target_compile_options("foo" PRIVATE "/W4" "/WX") target_link_libraries("foo" PRIVATE "GTest::gtest_main")
main.cpp:
main.cpp
#include <gtest/gtest.h>
Run cmake -B build -D CMAKE_TOOLCHAIN_FILE=<VCPKG_TOOLCHAIN_FILE>, where <VCPKG_TOOLCHAIN_FILE> is this file from locally installed vcpkg.
cmake -B build -D CMAKE_TOOLCHAIN_FILE=<VCPKG_TOOLCHAIN_FILE>
<VCPKG_TOOLCHAIN_FILE>
Run cmake --build build
cmake --build build
Does the bug persist in the most recent commit?
Yes.
What operating system and version are you using?
Windows 10 x64 2004
What compiler and version are you using?
MSVC 19.28.29915.0
What build system are you using?
cmake version 3.19.20122902-MSVC_2
Additional context
Here is my CI failure log for reference: https://github.com/EFanZh/LeetCode/runs/2644255397.
The text was updated successfully, but these errors were encountered:
Suppress C4275 warning for now
8b47773
See google/googletest#3415.
9d698f6
6545f8d
922e871
derekmauro
No branches or pull requests
Describe the bug
My C++ project (https://github.com/EFanZh/LeetCode/tree/master/c%2B%2B) fail to build after updating Google Test version because compiler generates C4275 warning.
Steps to reproduce the bug
On a Windows x64 OS:
Install vcpkg, CMake and Visual Studio 2019 with MSVC compiler.
Install Google Test with
vcpkg install gtest --triplet x64-windows
.Create a CMake project with two files:
CMakeLists.txt
:main.cpp
:Run
cmake -B build -D CMAKE_TOOLCHAIN_FILE=<VCPKG_TOOLCHAIN_FILE>
, where<VCPKG_TOOLCHAIN_FILE>
is this file from locally installed vcpkg.Run
cmake --build build
Does the bug persist in the most recent commit?
Yes.
What operating system and version are you using?
Windows 10 x64 2004
What compiler and version are you using?
MSVC 19.28.29915.0
What build system are you using?
cmake version 3.19.20122902-MSVC_2
Additional context
Here is my CI failure log for reference: https://github.com/EFanZh/LeetCode/runs/2644255397.
The text was updated successfully, but these errors were encountered: