mirror of https://github.com/eclipse/paho.mqtt.c
Don't allow building of samples without SSL - won't work #1387
This commit is contained in:
parent
afb5e871ba
commit
fdb9bea79b
|
|
@ -71,6 +71,10 @@ IF (NOT PAHO_BUILD_SHARED AND NOT PAHO_BUILD_STATIC)
|
|||
MESSAGE(FATAL_ERROR "You must set either PAHO_BUILD_SHARED, PAHO_BUILD_STATIC, or both")
|
||||
ENDIF()
|
||||
|
||||
IF (PAHO_BUILD_SAMPLES AND NOT PAHO_WITH_SSL)
|
||||
MESSAGE(FATAL_ERROR "You must build with SSL to build the samples")
|
||||
ENDIF()
|
||||
|
||||
IF(PAHO_BUILD_DEB_PACKAGE)
|
||||
set(CMAKE_INSTALL_DOCDIR share/doc/libpaho-mqtt)
|
||||
set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS ON)
|
||||
|
|
|
|||
Loading…
Reference in New Issue