Find package libwebsockets if the option is ON.
Otherwise, if the package is not installed, configuration will work, but building will fail. Signed-off-by: Pierre Hallot <hallotpierre@gmail.com>
This commit is contained in:
parent
2afc5783a9
commit
8f0bdd5fd3
@ -130,6 +130,7 @@ endif (CMAKE_SYSTEM_NAME STREQUAL Linux)
|
||||
option(WITH_WEBSOCKETS "Include websockets support?" OFF)
|
||||
option(STATIC_WEBSOCKETS "Use the static libwebsockets library?" OFF)
|
||||
if (WITH_WEBSOCKETS)
|
||||
find_package(libwebsockets)
|
||||
add_definitions("-DWITH_WEBSOCKETS")
|
||||
endif (WITH_WEBSOCKETS)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user