Skip to content

Commit fa50223

Browse files
authored
Use ROOT_DIR variable instead of CMAKE_SOURCE_DIR (aws#1918)
* Use ROOT_DIR variable instead of CMAKE_SOURCE_DIR
1 parent 2d1dacd commit fa50223

File tree

34 files changed

+79
-79
lines changed

34 files changed

+79
-79
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ jobs:
245245
fi
246246
- name: Upload doxygen artifact if main branch
247247
if: success() && github.ref == 'refs/heads/main'
248-
uses: actions/upload-artifact@v2
248+
uses: actions/upload-artifact@v4
249249
with:
250250
name: doxygen.zip
251251
path: ./doxygen.zip
@@ -284,7 +284,7 @@ jobs:
284284
uses: FreeRTOS/CI-CD-GitHub-Actions/link-verifier@main
285285
with:
286286
path: ./
287-
exclude-dirs: cmock,unity,cbmc,third-party,3rdparty,libmosquitto
287+
exclude-dirs: cmock,unity,cbmc,third-party,3rdparty,libmosquitto,libraries
288288
include-file-types: .c,.h,.dox
289289
allowlist-file: ./.github/links_allowlist.txt
290290
verify-manifest:

.github/workflows/localhost_demo_runner.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ jobs:
205205

206206
- name: 'Upload demo logs'
207207
if: always()
208-
uses: actions/upload-artifact@v3
208+
uses: actions/upload-artifact@v4
209209
with:
210210
name: demo_run_logs
211211
path: demo_run_logs

.github/workflows/tag-and-zip.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
ctest -E system --output-on-failure
111111
cd ..
112112
- name: Create artifact of ZIP
113-
uses: actions/upload-artifact@v2
113+
uses: actions/upload-artifact@v4
114114
with:
115115
name: aws-iot-device-sdk-embedded-C-${{ github.event.inputs.version_number }}.zip
116116
path: zip-check/aws-iot-device-sdk-embedded-C-${{ github.event.inputs.version_number }}.zip

demos/defender/defender_demo_json/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
set( DEMO_NAME "defender_demo" )
22

33
# Include MQTT library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
55

66
# Include backoffAlgorithm library file path configuration.
7-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
7+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
88

99
# Include JSON library's source and header path variables.
10-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreJSON/jsonFilePaths.cmake )
10+
include( ${ROOT_DIR}/libraries/standard/coreJSON/jsonFilePaths.cmake )
1111

1212
# Include Defender library's source and header path variables.
13-
include( ${CMAKE_SOURCE_DIR}/libraries/aws/device-defender-for-aws-iot-embedded-sdk/defenderFilePaths.cmake )
13+
include( ${ROOT_DIR}/libraries/aws/device-defender-for-aws-iot-embedded-sdk/defenderFilePaths.cmake )
1414

1515
# CPP files are searched for supporting CI build checks that verify C++ linkage of the Device Defender library
1616
file( GLOB DEMO_SRCS "*.c*" )

demos/fleet_provisioning/fleet_provisioning_keys_cert/CMakeLists.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
set( DEMO_NAME "fleet_provisioning_keys_cert_demo" )
22

33
# Include MQTT library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
55

66
# Include backoffAlgorithm library file path configuration.
7-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
7+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
88

99
# Include Fleet Provisioning library's source and header path variables.
1010
include(
11-
${CMAKE_SOURCE_DIR}/libraries/aws/fleet-provisioning-for-aws-iot-embedded-sdk/fleetprovisioningFilePaths.cmake )
11+
${ROOT_DIR}/libraries/aws/fleet-provisioning-for-aws-iot-embedded-sdk/fleetprovisioningFilePaths.cmake )
1212

1313
# Set path to corePKCS11 and it's third party libraries.
14-
set(COREPKCS11_LOCATION "${CMAKE_SOURCE_DIR}/libraries/standard/corePKCS11")
14+
set(COREPKCS11_LOCATION "${ROOT_DIR}/libraries/standard/corePKCS11")
1515
set(CORE_PKCS11_3RDPARTY_LOCATION "${COREPKCS11_LOCATION}/source/dependency/3rdparty")
1616

1717
# Include PKCS #11 library's source and header path variables.
@@ -50,7 +50,7 @@ target_include_directories( ${DEMO_NAME}
5050
${AWS_DEMO_INCLUDE_DIRS}
5151
"${FLEET_PROVISIONING_INCLUDE_PUBLIC_DIRS}"
5252
"${DEMOS_DIR}/pkcs11/common/include" # corePKCS11 config
53-
"${CMAKE_SOURCE_DIR}/platform/include"
53+
"${ROOT_DIR}/platform/include"
5454
"${CMAKE_CURRENT_LIST_DIR}"
5555
PRIVATE
5656
"${CORE_PKCS11_3RDPARTY_LOCATION}/mbedtls_utils" )

demos/fleet_provisioning/fleet_provisioning_with_csr/CMakeLists.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
set( DEMO_NAME "fleet_provisioning_with_csr_demo" )
22

33
# Include MQTT library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
55

66
# Include backoffAlgorithm library file path configuration.
7-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
7+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
88

99
# Include Fleet Provisioning library's source and header path variables.
1010
include(
11-
${CMAKE_SOURCE_DIR}/libraries/aws/fleet-provisioning-for-aws-iot-embedded-sdk/fleetprovisioningFilePaths.cmake )
11+
${ROOT_DIR}/libraries/aws/fleet-provisioning-for-aws-iot-embedded-sdk/fleetprovisioningFilePaths.cmake )
1212

1313
# Set path to corePKCS11 and it's third party libraries.
14-
set(COREPKCS11_LOCATION "${CMAKE_SOURCE_DIR}/libraries/standard/corePKCS11")
14+
set(COREPKCS11_LOCATION "${ROOT_DIR}/libraries/standard/corePKCS11")
1515
set(CORE_PKCS11_3RDPARTY_LOCATION "${COREPKCS11_LOCATION}/source/dependency/3rdparty")
1616

1717
# Include PKCS #11 library's source and header path variables.
@@ -50,7 +50,7 @@ target_include_directories( ${DEMO_NAME}
5050
${AWS_DEMO_INCLUDE_DIRS}
5151
"${FLEET_PROVISIONING_INCLUDE_PUBLIC_DIRS}"
5252
"${DEMOS_DIR}/pkcs11/common/include" # corePKCS11 config
53-
"${CMAKE_SOURCE_DIR}/platform/include"
53+
"${ROOT_DIR}/platform/include"
5454
"${CMAKE_CURRENT_LIST_DIR}"
5555
PRIVATE
5656
"${CORE_PKCS11_3RDPARTY_LOCATION}/mbedtls_utils" )

demos/greengrass/greengrass_demo_local_auth/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
set( DEMO_NAME "greengrass_demo_local_auth" )
22

33
# Include MQTT library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
55

66
# Include backoffAlgorithm library file path configuration.
7-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
7+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
88

99
# CPP files are searched for supporting CI build checks that verify C++ linkage of the coreMQTT library
1010
file( GLOB DEMO_FILE "${DEMO_NAME}.c*" )

demos/http/http_demo_basic_tls/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
set( DEMO_NAME "http_demo_basic_tls" )
22

33
# Include HTTP library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreHTTP/httpFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/standard/coreHTTP/httpFilePaths.cmake )
55

66
# Include backoffAlgorithm library file path configuration.
7-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
7+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
88

99
# CPP files are searched for supporting CI build checks that verify C++ linkage of the coreHTTP library
1010
file( GLOB DEMO_FILE "${DEMO_NAME}.c*" )

demos/http/http_demo_mutual_auth/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
set( DEMO_NAME "http_demo_mutual_auth" )
22

33
# Include HTTP library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreHTTP/httpFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/standard/coreHTTP/httpFilePaths.cmake )
55

66
# Include backoffAlgorithm library file path configuration.
7-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
7+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
88

99
# CPP files are searched for supporting CI build checks that verify C++ linkage of the coreHTTP library
1010
file( GLOB DEMO_FILE "${DEMO_NAME}.c*" )

demos/http/http_demo_plaintext/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
set( DEMO_NAME "http_demo_plaintext" )
22

33
# Include HTTP library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreHTTP/httpFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/standard/coreHTTP/httpFilePaths.cmake )
55

66
# Include backoffAlgorithm library file path configuration.
7-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
7+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
88

99
# CPP files are searched for supporting CI build checks that verify C++ linkage of the coreHTTP library
1010
file( GLOB DEMO_FILE "${DEMO_NAME}.c*" )

demos/http/http_demo_s3_download/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
set( DEMO_NAME "http_demo_s3_download" )
22

33
# Include HTTP library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreHTTP/httpFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/standard/coreHTTP/httpFilePaths.cmake )
55

66
# Include backoffAlgorithm library file path configuration.
7-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
7+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
88

99
# Include coreJSON library file path configuration.
10-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreJSON/jsonFilePaths.cmake )
10+
include( ${ROOT_DIR}/libraries/standard/coreJSON/jsonFilePaths.cmake )
1111

1212
# Include sigV4 library file path configuration.
13-
include( ${CMAKE_SOURCE_DIR}/libraries/aws/sigv4-for-aws-iot-embedded-sdk/sigv4FilePaths.cmake )
13+
include( ${ROOT_DIR}/libraries/aws/sigv4-for-aws-iot-embedded-sdk/sigv4FilePaths.cmake )
1414

1515
# CPP files are searched for supporting CI build checks that verify C++ linkage of the coreHTTP library
1616
file( GLOB DEMO_FILE "${DEMO_NAME}.c*" )

demos/http/http_demo_s3_download_multithreaded/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
set( DEMO_NAME "http_demo_s3_download_multithreaded" )
22

33
# Include HTTP library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreHTTP/httpFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/standard/coreHTTP/httpFilePaths.cmake )
55

66
# Include backoffAlgorithm library file path configuration.
7-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
7+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
88

99
# CPP files are searched for supporting CI build checks that verify C++ linkage of the coreHTTP library
1010
file( GLOB DEMO_FILE "${DEMO_NAME}.c*" )

demos/http/http_demo_s3_generate_presigned_url/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
set( DEMO_NAME "http_demo_s3_generate_presigned_url" )
22

33
# Include HTTP library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreHTTP/httpFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/standard/coreHTTP/httpFilePaths.cmake )
55

66
# Include backoffAlgorithm library file path configuration.
7-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
7+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
88

99
# Include coreJSON library file path configuration.
10-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreJSON/jsonFilePaths.cmake )
10+
include( ${ROOT_DIR}/libraries/standard/coreJSON/jsonFilePaths.cmake )
1111

1212
# Include sigV4 library file path configuration.
13-
include( ${CMAKE_SOURCE_DIR}/libraries/aws/sigv4-for-aws-iot-embedded-sdk/sigv4FilePaths.cmake )
13+
include( ${ROOT_DIR}/libraries/aws/sigv4-for-aws-iot-embedded-sdk/sigv4FilePaths.cmake )
1414

1515
# CPP files are searched for supporting CI build checks that verify C++ linkage of the coreHTTP library
1616
file( GLOB DEMO_FILE "${DEMO_NAME}.c*" )

demos/http/http_demo_s3_upload/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
set( DEMO_NAME "http_demo_s3_upload" )
22

33
# Include HTTP library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreHTTP/httpFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/standard/coreHTTP/httpFilePaths.cmake )
55

66
# Include backoffAlgorithm library file path configuration.
7-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
7+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
88

99
# CPP files are searched for supporting CI build checks that verify C++ linkage of the coreHTTP library
1010
file( GLOB DEMO_FILE "${DEMO_NAME}.c*" )

demos/jobs/jobs_demo_mosquitto/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set( DEMO_NAME "jobs_demo_mosquitto" )
44
set_source_files_properties( "${DEMO_NAME}.c" PROPERTIES COMPILE_FLAGS "-Wno-unused-parameter" )
55

66
# Include library source and header path variables.
7-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreJSON/jsonFilePaths.cmake )
8-
include( ${CMAKE_SOURCE_DIR}/libraries/aws/jobs-for-aws-iot-embedded-sdk/jobsFilePaths.cmake )
7+
include( ${ROOT_DIR}/libraries/standard/coreJSON/jsonFilePaths.cmake )
8+
include( ${ROOT_DIR}/libraries/aws/jobs-for-aws-iot-embedded-sdk/jobsFilePaths.cmake )
99

1010
# Demo target.
1111
add_executable(

demos/mqtt/mqtt_demo_basic_tls/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
set( DEMO_NAME "mqtt_demo_basic_tls" )
22

33
# Include MQTT library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
55

66
# Include backoffAlgorithm library file path configuration.
7-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
7+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
88

99
# CPP files are searched for supporting CI build checks that verify C++ linkage of the coreMQTT library
1010
file( GLOB DEMO_FILE "${DEMO_NAME}.c*" )

demos/mqtt/mqtt_demo_mutual_auth/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
set( DEMO_NAME "mqtt_demo_mutual_auth" )
22

33
# Include MQTT library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
55

66
# Include backoffAlgorithm library file path configuration.
7-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
7+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
88

99
# CPP files are searched for supporting CI build checks that verify C++ linkage of the coreMQTT library
1010
file( GLOB DEMO_FILE "${DEMO_NAME}.c*" )

demos/mqtt/mqtt_demo_plaintext/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
set( DEMO_NAME "mqtt_demo_plaintext" )
22

33
# Include MQTT library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
55

66
# Include backoffAlgorithm library file path configuration.
7-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
7+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
88

99
# CPP files are searched for supporting CI build checks that verify C++ linkage of the coreMQTT library
1010
file( GLOB DEMO_FILE "${DEMO_NAME}.c*" )

demos/mqtt/mqtt_demo_serializer/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
set( DEMO_NAME "mqtt_demo_serializer" )
22

33
# Include MQTT library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
55

66
# Include backoffAlgorithm library file path configuration.
7-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
7+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
88

99
# CPP files are searched for supporting CI build checks that verify C++ linkage of the coreMQTT library
1010
file( GLOB DEMO_FILE "${DEMO_NAME}.c*" )

demos/mqtt/mqtt_demo_subscription_manager/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
add_subdirectory( ${CMAKE_CURRENT_LIST_DIR}/subscription-manager )
33

44
# Include MQTT library's source and header path variables.
5-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
5+
include( ${ROOT_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
66

77
# Include backoffAlgorithm library file path configuration.
8-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
8+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
99

1010
set( DEMO_NAME "mqtt_demo_subscription_manager" )
1111

demos/mqtt/mqtt_demo_subscription_manager/subscription-manager/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Include MQTT library's source and header path variables.
2-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
2+
include( ${ROOT_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
33

44
# Include backoffAlgorithm library file path configuration.
5-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
5+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
66

77
set( LIBRARY_NAME "mqtt_subscription_manager" )
88

demos/ota/ota_demo_core_http/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
set( DEMO_NAME "ota_demo_core_http" )
22

33
# Include required library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/aws/ota-for-aws-iot-embedded-sdk/otaFilePaths.cmake )
5-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
6-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreHTTP/httpFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/aws/ota-for-aws-iot-embedded-sdk/otaFilePaths.cmake )
5+
include( ${ROOT_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
6+
include( ${ROOT_DIR}/libraries/standard/coreHTTP/httpFilePaths.cmake )
77

88
# Include backoffAlgorithm library file path configuration.
9-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
9+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
1010

1111
# Disable some warnings for llhttp sources.
1212
set_source_files_properties(

demos/ota/ota_demo_core_mqtt/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
set( DEMO_NAME "ota_demo_core_mqtt" )
22

33
# Include required library's source and header path variables.
4-
include( ${CMAKE_SOURCE_DIR}/libraries/aws/ota-for-aws-iot-embedded-sdk/otaFilePaths.cmake )
5-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
4+
include( ${ROOT_DIR}/libraries/aws/ota-for-aws-iot-embedded-sdk/otaFilePaths.cmake )
5+
include( ${ROOT_DIR}/libraries/standard/coreMQTT/mqttFilePaths.cmake )
66

77
# Include backoffAlgorithm library file path configuration.
8-
include( ${CMAKE_SOURCE_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
8+
include( ${ROOT_DIR}/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake )
99

1010
# Demo target.
1111
add_executable(

demos/pkcs11/pkcs11_demo_management_and_rng/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
set( DEMO_NAME "pkcs11_demo_management_and_rng" )
22

33
# Set path to corePKCS11 and it's third party libraries.
4-
set(COREPKCS11_LOCATION "${CMAKE_SOURCE_DIR}/libraries/standard/corePKCS11")
4+
set(COREPKCS11_LOCATION "${ROOT_DIR}/libraries/standard/corePKCS11")
55
set(CORE_PKCS11_3RDPARTY_LOCATION "${COREPKCS11_LOCATION}/source/dependency/3rdparty")
66

77
# Include PKCS #11 library's source and header path variables.

demos/pkcs11/pkcs11_demo_mechanisms_and_digests/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
set( DEMO_NAME "pkcs11_demo_mechanisms_and_digests" )
22

33
# Set path to corePKCS11 and its third party libraries.
4-
set(COREPKCS11_LOCATION "${CMAKE_SOURCE_DIR}/libraries/standard/corePKCS11")
4+
set(COREPKCS11_LOCATION "${ROOT_DIR}/libraries/standard/corePKCS11")
55
set(CORE_PKCS11_3RDPARTY_LOCATION "${COREPKCS11_LOCATION}/source/dependency/3rdparty")
66

77
# Include PKCS #11 library's source and header path variables.

demos/pkcs11/pkcs11_demo_objects/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
set( DEMO_NAME "pkcs11_demo_objects" )
22

33
# Set path to corePKCS11 and it's third party libraries.
4-
set(COREPKCS11_LOCATION "${CMAKE_SOURCE_DIR}/libraries/standard/corePKCS11")
4+
set(COREPKCS11_LOCATION "${ROOT_DIR}/libraries/standard/corePKCS11")
55
set(CORE_PKCS11_3RDPARTY_LOCATION "${COREPKCS11_LOCATION}/source/dependency/3rdparty")
66

77
# Include PKCS #11 library's source and header path variables.

demos/pkcs11/pkcs11_demo_sign_and_verify/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
set( DEMO_NAME "pkcs11_demo_sign_and_verify" )
22

33
# Set path to corePKCS11 and it's third party libraries.
4-
set(COREPKCS11_LOCATION "${CMAKE_SOURCE_DIR}/libraries/standard/corePKCS11")
4+
set(COREPKCS11_LOCATION "${ROOT_DIR}/libraries/standard/corePKCS11")
55
set(CORE_PKCS11_3RDPARTY_LOCATION "${COREPKCS11_LOCATION}/source/dependency/3rdparty")
66

77
# Include PKCS #11 library's source and header path variables.

0 commit comments

Comments
 (0)