Skip to content

Commit a1e9776

Browse files
authored
Merge pull request #269 from ityuhui/yh-c-compiler-20250607
Support C compiler build
2 parents 4b28e80 + 035dea4 commit a1e9776

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

kubernetes/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
cmake_minimum_required (VERSION 2.6...3.10.2)
22
project (CGenerator C)
33

4-
enable_language(C)
5-
enable_language(CXX)
6-
74
cmake_policy(SET CMP0063 NEW)
85

96
set(CMAKE_C_VISIBILITY_PRESET default)

kubernetes/ConfigureChecks.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
include(CheckCXXSymbolExists)
1+
include(CheckSymbolExists)
22

3-
check_cxx_symbol_exists(strndup "string.h" HAVE_STRNDUP)
4-
check_cxx_symbol_exists(secure_getenv "stdlib.h" HAVE_SECURE_GETENV)
5-
check_cxx_symbol_exists(getenv "stdlib.h" HAVE_GETENV)
3+
check_symbol_exists(strndup "string.h" HAVE_STRNDUP)
4+
check_symbol_exists(secure_getenv "stdlib.h" HAVE_SECURE_GETENV)
5+
check_symbol_exists(getenv "stdlib.h" HAVE_GETENV)

0 commit comments

Comments
 (0)