Minor hygiene in mutual auth CMakeLists.txt
Update CmakeLists.txt to avoid using BROKER_ENDPOINT CMake variable
@@ -35,18 +35,14 @@ target_include_directories(
${LOGGING_INCLUDE_DIRS}
)
+# Set demo configuration for Root CA cert and MQTT client identifier,
+# if passed as CMake variables.
if(ROOT_CA_CERT_PATH)
target_compile_definitions(
${DEMO_NAME} PRIVATE
ROOT_CA_CERT_PATH="${ROOT_CA_CERT_PATH}"
)
endif()
-if(BROKER_ENDPOINT)
- target_compile_definitions(
- ${DEMO_NAME} PRIVATE
- BROKER_ENDPOINT="${BROKER_ENDPOINT}"
- )
-endif()
if(CLIENT_IDENTIFIER)
target_compile_definitions(
${DEMO_NAME} PRIVATE
