blob: e14b03898ad5e8eb7b7029925309a07ae4e7c6eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
--- CMakeLists.txt.orig 2020-11-03 14:54:48.786455348 -0800
+++ CMakeLists.txt 2020-11-03 15:00:16.067445503 -0800
@@ -197,7 +197,7 @@
check_symbol_exists(strlcpy "string.h" HAVE_STRLCPY)
check_symbol_exists(program_invocation_name "errno.h" HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME)
if (HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME)
- add_compile_definitions($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:_GNU_SOURCE=1>)
+ add_definitions(-D_GNU_SOURCE=1)
endif()
check_symbol_exists(__printflike "bsd/sys/cdefs.h" HAVE_PRINTFLIKE)
@@ -217,9 +217,9 @@
endif()
if(dtrace_EXECUTABLE)
- add_compile_definitions($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:DISPATCH_USE_DTRACE=1>)
+ add_definitions(-DDISPATCH_USE_DTRACE=1)
else()
- add_compile_definitions($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:DISPATCH_USE_DTRACE=0>)
+ add_definitions(-DDISPATCH_USE_DTRACE=0)
endif()
find_program(leaks_EXECUTABLE leaks)
@@ -252,7 +252,7 @@
configure_file("${PROJECT_SOURCE_DIR}/cmake/config.h.in"
"${PROJECT_BINARY_DIR}/config/config_ac.h")
-add_compile_definitions($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:HAVE_CONFIG_H>)
+add_definitions(-DHAVE_CONFIG_H)
if(ENABLE_SWIFT)
|