Skip to content

Commit a3c2228

Browse files
committed
[Build] Make sure we include CheckSymbolExists.
We need to include CheckSymbolExists on Windows as well as on Linux. rdar://123381867
1 parent 56c4738 commit a3c2228

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CoreFoundation/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ project(CoreFoundation
66
VERSION 1338
77
LANGUAGES ASM C)
88

9+
include(CheckSymbolExists)
10+
include(CheckIncludeFile)
11+
912
set(CMAKE_C_STANDARD 99)
1013
set(CMAKE_C_STANDARD_REQUIRED YES)
1114

@@ -70,8 +73,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL Linux OR CMAKE_SYSTEM_NAME STREQUAL Android)
7073
add_compile_definitions($<$<COMPILE_LANGUAGE:C>:_GNU_SOURCE>)
7174

7275
if(CMAKE_SYSTEM_NAME STREQUAL Linux)
73-
include(CheckSymbolExists)
74-
include(CheckIncludeFile)
7576
list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
7677
check_include_file("sched.h" HAVE_SCHED_H)
7778
if(HAVE_SCHED_H)

0 commit comments

Comments
 (0)