summaryrefslogtreecommitdiffstats
path: root/external/meta-iot-cloud/recipes-aws/aws-iot-device-sdk-cpp/files/Add-C-as-a-build-language.patch
blob: 7cf150f6ead1b204b89cc5bd0a9ba6f3181a89f1 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
From ec1e8828ce3067d6902c04a75952a3535292040c Mon Sep 17 00:00:00 2001
From: Scott Ware <scott.r.ware@intel.com>
Date: Fri, 8 Dec 2017 10:41:10 +0000
Subject: [PATCH 1/5] Add C as a build language

Signed-off-by: Scott Ware <scott.r.ware@intel.com>
---
 CMakeLists.txt                       | 2 +-
 cli/CMakeLists.txt                   | 2 +-
 samples/Discovery/CMakeLists.txt     | 2 +-
 samples/PubSub/CMakeLists.txt        | 2 +-
 samples/ShadowDelta/CMakeLists.txt   | 2 +-
 samples/StoryRobotArm/CMakeLists.txt | 4 ++--
 samples/StorySwitch/CMakeLists.txt   | 4 ++--
 7 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ad8a4e1..9df255f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,5 @@
 cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
-project(aws-iot-sdk-cpp CXX)
+project(aws-iot-sdk-cpp C CXX)
 option(BUILD_SHARED_LIBRARY "Build the library as a shared object, will build it as a static library otherwise" NO)
 
 ######################################
diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt
index da4f25d..dfa5040 100644
--- a/cli/CMakeLists.txt
+++ b/cli/CMakeLists.txt
@@ -1,5 +1,5 @@
 cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
-project(aws-iot-cli CXX)
+project(aws-iot-cli C CXX)
 
 ######################################
 # Section : Disable in-source builds #
diff --git a/samples/Discovery/CMakeLists.txt b/samples/Discovery/CMakeLists.txt
index 8df8d35..3147841 100644
--- a/samples/Discovery/CMakeLists.txt
+++ b/samples/Discovery/CMakeLists.txt
@@ -1,5 +1,5 @@
 cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
-project(aws-iot-cpp-samples CXX)
+project(aws-iot-cpp-samples C CXX)
 
 ######################################
 # Section : Disable in-source builds #
diff --git a/samples/PubSub/CMakeLists.txt b/samples/PubSub/CMakeLists.txt
index 62ffd05..33531d0 100644
--- a/samples/PubSub/CMakeLists.txt
+++ b/samples/PubSub/CMakeLists.txt
@@ -1,5 +1,5 @@
 cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
-project(aws-iot-cpp-samples CXX)
+project(aws-iot-cpp-samples C CXX)
 
 ######################################
 # Section : Disable in-source builds #
diff --git a/samples/ShadowDelta/CMakeLists.txt b/samples/ShadowDelta/CMakeLists.txt
index 98aa3b9..1ebabed 100644
--- a/samples/ShadowDelta/CMakeLists.txt
+++ b/samples/ShadowDelta/CMakeLists.txt
@@ -1,5 +1,5 @@
 cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
-project(aws-iot-cpp-samples CXX)
+project(aws-iot-cpp-samples C CXX)
 
 ######################################
 # Section : Disable in-source builds #
diff --git a/samples/StoryRobotArm/CMakeLists.txt b/samples/StoryRobotArm/CMakeLists.txt
index 215df18..13dd16f 100644
--- a/samples/StoryRobotArm/CMakeLists.txt
+++ b/samples/StoryRobotArm/CMakeLists.txt
@@ -1,5 +1,5 @@
 cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
-project(aws-iot-cpp-samples CXX)
+project(aws-iot-cpp-samples C CXX)
 
 ######################################
 # Section : Disable in-source builds #
@@ -84,4 +84,4 @@ endif ()
 #########################
 
 set(NETWORK_WRAPPER_DEST_TARGET ${ROBOT_ARM_SAMPLE_TARGET_NAME})
-include(${PROJECT_SOURCE_DIR}/../../network/CMakeLists.txt.in)
\ No newline at end of file
+include(${PROJECT_SOURCE_DIR}/../../network/CMakeLists.txt.in)
diff --git a/samples/StorySwitch/CMakeLists.txt b/samples/StorySwitch/CMakeLists.txt
index e612567..0096bad 100644
--- a/samples/StorySwitch/CMakeLists.txt
+++ b/samples/StorySwitch/CMakeLists.txt
@@ -1,5 +1,5 @@
 cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
-project(aws-iot-cpp-samples CXX)
+project(aws-iot-cpp-samples C CXX)
 
 ######################################
 # Section : Disable in-source builds #
@@ -84,4 +84,4 @@ endif ()
 #########################
 
 set(NETWORK_WRAPPER_DEST_TARGET ${SWITCH_SAMPLE_TARGET_NAME})
-include(${PROJECT_SOURCE_DIR}/../../network/CMakeLists.txt.in)
\ No newline at end of file
+include(${PROJECT_SOURCE_DIR}/../../network/CMakeLists.txt.in)
-- 
1.9.1