We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56c4738 commit a3c2228Copy full SHA for a3c2228
CoreFoundation/CMakeLists.txt
@@ -6,6 +6,9 @@ project(CoreFoundation
6
VERSION 1338
7
LANGUAGES ASM C)
8
9
+include(CheckSymbolExists)
10
+include(CheckIncludeFile)
11
+
12
set(CMAKE_C_STANDARD 99)
13
set(CMAKE_C_STANDARD_REQUIRED YES)
14
@@ -70,8 +73,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL Linux OR CMAKE_SYSTEM_NAME STREQUAL Android)
70
73
add_compile_definitions($<$<COMPILE_LANGUAGE:C>:_GNU_SOURCE>)
71
74
72
75
if(CMAKE_SYSTEM_NAME STREQUAL Linux)
- include(CheckSymbolExists)
- include(CheckIncludeFile)
76
list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
77
check_include_file("sched.h" HAVE_SCHED_H)
78
if(HAVE_SCHED_H)
0 commit comments