Skip to content

Commit 8a4d44a

Browse files
committed
Remove C from CMake
There is no need to declare C as a needed language in cmake to build the project.
1 parent 1b96fa1 commit 8a4d44a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
cmake_minimum_required(VERSION 3.16)
55

6-
project(googletest-distribution)
6+
project(googletest-distribution LANGUAGES CXX)
77
set(GOOGLETEST_VERSION 1.16.0)
88

99
if(NOT CYGWIN AND NOT MSYS AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL QNX)

googletest/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@ endif()
4242
# CMake files in this project can refer to the root source directory
4343
# as ${gtest_SOURCE_DIR} and to the root binary directory as
4444
# ${gtest_BINARY_DIR}.
45-
# Language "C" is required for find_package(Threads).
4645

4746
# Project version.
4847

4948
cmake_minimum_required(VERSION 3.13)
50-
project(gtest VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
49+
project(gtest VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX)
5150

5251
if (COMMAND set_up_hermetic_build)
5352
set_up_hermetic_build()

0 commit comments

Comments
 (0)