make test certificate path independent of ci environment

Signed-off-by: Andreas Walter <andreas.walter@waltronix.de>
This commit is contained in:
Andreas Walter 2020-01-20 12:22:33 +01:00
parent afa45bf691
commit e3fbd02afa
1 changed files with 2 additions and 5 deletions

View File

@ -3,11 +3,8 @@ PROJECT(mqtt-tests C)
SET(MQTT_TEST_BROKER "tcp://localhost:1883" CACHE STRING "Hostname of a test MQTT broker to use")
SET(MQTT_TEST_PROXY "tcp://localhost:1884" CACHE STRING "Hostname of the test proxy to use")
SET(MQTT_SSL_HOSTNAME "localhost" CACHE STRING "Hostname of a test SSL MQTT broker to use")
IF (WIN32)
SET(CERTDIR $ENV{APPVEYOR_BUILD_FOLDER}/test/ssl)
ELSE ()
SET(CERTDIR $ENV{TRAVIS_BUILD_DIR}/test/ssl)
ENDIF ()
SET(CERTDIR ${CMAKE_SOURCE_DIR}/test/ssl)
IF (PAHO_WITH_SSL)