Index: CMakeLists.txt
--- CMakeLists.txt.orig	2022-05-17 18:53:27.000000000 +0200
+++ CMakeLists.txt	2023-04-15 17:01:21.417771000 +0200
@@ -797,9 +797,9 @@
 
 	# always warn all and generate debug info
 	if (UNIX AND NOT LWS_PLAT_FREERTOS)
-		set(CMAKE_C_FLAGS "-Wall -Wextra -Wno-unused-parameter -Wconversion -Wsign-compare -Wstrict-aliasing ${VISIBILITY_FLAG} -Wundef ${GCOV_FLAGS} ${CMAKE_C_FLAGS} ${ASAN_FLAGS}" )
+		set(CMAKE_C_FLAGS "-Wno-unused-parameter ${VISIBILITY_FLAG} ${GCOV_FLAGS} ${CMAKE_C_FLAGS} ${ASAN_FLAGS}" )
 	else()
-		set(CMAKE_C_FLAGS "-Wall -Wsign-compare ${VISIBILITY_FLAG} ${GCOV_FLAGS} ${CMAKE_C_FLAGS}" )
+		set(CMAKE_C_FLAGS "${VISIBILITY_FLAG} ${GCOV_FLAGS} ${CMAKE_C_FLAGS}" )
 	endif()
 
 	if (PICO_SDK_PATH)
@@ -1056,8 +1056,6 @@
 # Installation preparations.
 #
 
-export(PACKAGE libwebsockets)
-
 install(DIRECTORY include/libwebsockets
 	DESTINATION "${LWS_INSTALL_INCLUDE_DIR}" COMPONENT dev)
 install(FILES ${PROJECT_BINARY_DIR}/include/libwebsockets.h ${PROJECT_BINARY_DIR}/include/lws_config.h
Index: lib/CMakeLists.txt
--- lib/CMakeLists.txt.orig	2022-05-17 18:53:27.000000000 +0200
+++ lib/CMakeLists.txt	2023-04-15 17:02:17.810491000 +0200
@@ -318,7 +318,7 @@
 Description: Websockets server and client library
 Version: ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}
 
-Libs: -L\${libdir} -lwebsockets
+Libs: -L\${libdir} -lwebsockets -lssl -lcrypto -lz
 Cflags: -I\${includedir}
 "
 )
@@ -340,7 +340,7 @@
 Description: Websockets server and client static library
 Version: ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}
 
-Libs: -L\${libdir} -l:libwebsockets${CMAKE_STATIC_LIBRARY_SUFFIX}
+Libs: -L\${libdir} -llibwebsockets -lssl -lcrypto -lz
 Libs.private:
 Cflags: -I\${includedir}
 "
