Skip to content

Commit

Permalink
Make WebSockets demos compile on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardalee committed Feb 10, 2024
1 parent 4aaeb3d commit ff35725
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/C/src/lib/WebSocketCmake.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
find_package(libwebsockets REQUIRED) # Finds the libwebsockets library

target_link_libraries( ${LF_MAIN_TARGET} websockets ) # Links the websockets library
# Note that the PUBLIC keyword is needed otherwise CMake will issue an error
# saying that you must use either all-keywords or all-plain, and the keywords are previously used.
target_link_libraries( ${LF_MAIN_TARGET} PUBLIC websockets ) # Links the websockets library

0 comments on commit ff35725

Please sign in to comment.