Commit d7452281 authored by Otavio Rodolfo Piske's avatar Otavio Rodolfo Piske

Changed the build to only build SSL test cases if building with SSL support

Signed-off-by: 's avatarOtavio Rodolfo Piske <opiske@redhat.com>
parent 4643e00e
......@@ -31,20 +31,22 @@ ADD_TEST(
COMMAND test2 "--connection" ${MQTT_TEST_BROKER}
)
ADD_EXECUTABLE(
IF (PAHO_WITH_SSL)
ADD_EXECUTABLE(
test3
test3.c
)
)
TARGET_LINK_LIBRARIES(
TARGET_LINK_LIBRARIES(
test3
paho-mqtt3cs
)
)
ADD_TEST(
ADD_TEST(
NAME test3
COMMAND test3 "--connection" ${MQTT_TEST_BROKER}
)
)
ENDIF()
ADD_EXECUTABLE(
test4
......@@ -62,20 +64,22 @@ ADD_TEST(
)
ADD_EXECUTABLE(
IF (PAHO_WITH_SSL)
ADD_EXECUTABLE(
test5
test5.c
)
)
TARGET_LINK_LIBRARIES(
TARGET_LINK_LIBRARIES(
test5
paho-mqtt3as
)
)
ADD_TEST(
ADD_TEST(
NAME test5
COMMAND test5 "--hostname" ${MQTT_SSL_HOSTNAME}
)
)
ENDIF()
ADD_EXECUTABLE(
test6
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment