fix cmake syntax error and convert some errors to fatal errors

This commit is contained in:
Benjamin Sergeant 2020-04-27 10:29:27 -07:00
parent 22e0083832
commit a9f5d5353f

View File

@ -134,11 +134,11 @@ if (USE_TLS)
elseif (USE_SECURE_TRANSPORT)
list( APPEND IXWEBSOCKET_HEADERS ixwebsocket/IXSocketAppleSSL.h)
list( APPEND IXWEBSOCKET_SOURCES ixwebsocket/IXSocketAppleSSL.cpp)
else (USE_OPEN_SSL)
elseif (USE_OPEN_SSL)
list( APPEND IXWEBSOCKET_HEADERS ixwebsocket/IXSocketOpenSSL.h)
list( APPEND IXWEBSOCKET_SOURCES ixwebsocket/IXSocketOpenSSL.cpp)
else()
message(STATUS "TLS Configuration error: unknown backend")
message(FATAL_ERROR "TLS Configuration error: unknown backend")
endif()
endif()
@ -156,7 +156,7 @@ if (USE_TLS)
elseif (USE_SECURE_TRANSPORT)
target_compile_definitions(ixwebsocket PUBLIC IXWEBSOCKET_USE_SECURE_TRANSPORT)
else()
message(STATUS "TLS Configuration error: unknown backend")
message(FATAL_ERROR "TLS Configuration error: unknown backend")
endif()
endif()