vcpkg/ports/paho-mqtt/disable_tests.patch
2017-09-03 14:16:09 -07:00

17 lines
405 B
Diff

diff --git "a/CMakeLists.txt" "b/CMakeLists.txt"
index c041df0..2feb580 100644
--- "a/CMakeLists.txt"
+++ "b/CMakeLists.txt"
@@ -94,7 +94,10 @@ SET(CPACK_PACKAGE_VERSION_MINOR ${PAHO_VERSION_MINOR})
SET(CPACK_PACKAGE_VERSION_PATCH ${PAHO_VERSION_PATCH})
INCLUDE(CPack)
+if(BUILD_TESTS)
ENABLE_TESTING()
INCLUDE_DIRECTORIES(test src)
ADD_SUBDIRECTORY(test)
+
+endif()
\ No newline at end of file