Skip to content

Conversation

@theComputeKid
Copy link

@theComputeKid theComputeKid commented Nov 28, 2025

There is no need to declare C as a needed language in cmake to build the project. Inspecting the compile_commands.json also indicates that everything is built with a C++ compiler. This PR removes the requirement to detect a valid C compiler on the build system. For projects that include googletest as a dependency, there are subtle reasons why we would not want to initialise a C compiler.

The comments indicate that C was only used for find_package(Threads) but I can see no reference to it in the code so this comment must no longer be relevant. This leads me to believe it should be safe to make GoogleTest a purely CXX project.

@theComputeKid theComputeKid changed the title Remove C from project build Remove C from CMake project build Nov 28, 2025
@theComputeKid theComputeKid marked this pull request as ready for review November 28, 2025 11:37
@theComputeKid theComputeKid changed the title Remove C from CMake project build Remove C from CMake Nov 28, 2025
There is no need to declare C as a needed language in cmake to build the project.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant