Skip to content

Commit 6be1fd0

Browse files
committed
fix cmake for commands
1 parent 80d5759 commit 6be1fd0

3 files changed

Lines changed: 2 additions & 11 deletions

File tree

samples/greengrass/basic_discovery/main.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ struct CmdArgs
2323
String endpoint;
2424
String cert;
2525
String key;
26-
String clientId;
2726
String caFile;
2827
String thingName;
2928
String topic = "test/topic";
@@ -192,10 +191,6 @@ CmdArgs parseArgs(int argc, char *argv[])
192191
{
193192
args.thingName = argv[++i];
194193
}
195-
else if (strcmp(argv[i], "--client_id") == 0)
196-
{
197-
args.clientId = argv[++i];
198-
}
199194
else if (strcmp(argv[i], "--ca_file") == 0)
200195
{
201196
args.caFile = argv[++i];
@@ -242,10 +237,6 @@ CmdArgs parseArgs(int argc, char *argv[])
242237
printHelp();
243238
exit(1);
244239
}
245-
if (args.clientId.empty())
246-
{
247-
args.clientId = String("test-") + Aws::Crt::UUID().ToString();
248-
}
249240
return args;
250241
}
251242

samples/service_clients/commands/commands-sandbox/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ cmake_minimum_required(VERSION 3.9...3.31)
33
project(commands-sandbox CXX)
44

55
file(GLOB SRC_FILES
6-
"*.cpp"
6+
"*.cpp",
7+
"*.h"
78
)
89

910
add_executable(${PROJECT_NAME} ${SRC_FILES})

samples/service_clients/fleet_provisioning/provision-basic/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include <aws/iotidentity/V2ErrorResponse.h>
2222

2323
#include <fstream>
24-
#include <cstring>
2524

2625
using namespace Aws::Crt;
2726
using namespace Aws::Iotidentity;

0 commit comments

Comments
 (0)