diff options
| author | Scott Larson <[email protected]> | 2020-10-19 15:53:45 -0700 |
|---|---|---|
| committer | Scott Larson <[email protected]> | 2020-10-19 15:53:45 -0700 |
| commit | e7f92a55a41fdd7471d32f76bc512822e4ee1993 (patch) | |
| tree | d40848ede90d9984b6d2e286ead723f2469223c8 | |
| parent | e8b930b6684d21b7c0402757de853845e216cb27 (diff) | |
update cmake files
| -rwxr-xr-x | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | addons/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 59282dac..68d3c8be 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,7 @@ endif() if(NXD_ENABLE_AZURE_IOT) message(STATUS "NXD_ENABLE_AZURE_IOT - defined") target_link_libraries(${PROJECT_NAME} PUBLIC az_iot_hub az_iot_provisioning) - if(NOT ${NX_AZURE_DISABLE_IOT_SECURITY_MODULE}) + if(NOT NX_AZURE_DISABLE_IOT_SECURITY_MODULE) target_link_libraries(${PROJECT_NAME} PUBLIC iot_security_module) endif() endif() diff --git a/addons/CMakeLists.txt b/addons/CMakeLists.txt index bf521ce5..cfe60389 100644 --- a/addons/CMakeLists.txt +++ b/addons/CMakeLists.txt @@ -56,7 +56,7 @@ if(NXD_ENABLE_AZURE_IOT) set(ENV{AZ_SDK_C_NO_SAMPLES} TRUE) set(NX_AZURE_DISABLE_IOT_SECURITY_MODULE OFF CACHE BOOL "Disable Azure IoT Security Module (default is OFF)") add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/azure_iot/azure-sdk-for-c) - if(${NX_AZURE_DISABLE_IOT_SECURITY_MODULE}) + if(NX_AZURE_DISABLE_IOT_SECURITY_MODULE) target_compile_definitions(${PROJECT_NAME} PUBLIC -DNX_AZURE_DISABLE_IOT_SECURITY_MODULE) else() add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/azure_iot/azure_iot_security_module) |
