diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index bce34ad3..3cd8c150 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -4,12 +4,13 @@ IF (WIN32) SET(MQTT_TEST_BROKER "tcp://mqtt.iotree.co.uk:1883" CACHE STRING "Hostname of a test MQTT broker to use") SET(MQTT_TEST_PROXY "tcp://localhost:1883" CACHE STRING "Hostname of the test proxy to use") SET(MQTT_SSL_HOSTNAME "mqtt.iotree.co.uk" CACHE STRING "Hostname of a test SSL MQTT broker to use") + SET(CERTDIR $ENV{APPVEYOR_BUILD_FOLDER}/test/ssl) ELSE () 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") + SET(CERTDIR $ENV{TRAVIS_BUILD_DIR}/test/ssl) ENDIF () -SET(CERTDIR $ENV{TRAVIS_BUILD_DIR}/test/ssl ) IF (PAHO_WITH_SSL) SET(OPENSSL_SEARCH_PATH "" CACHE PATH "Directory containing OpenSSL libraries and includes")