1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00
libwebsockets/cmake
Andy Green 67f532a8c6 cmake: bring tls include requirement out as PUBLIC
There's no problem for library build, also with LWS_WITH_MINIMAL_EXAMPLES,
but after install at least on OSX, there are problems finding the installed
lws include dir (concealed on most platforms by the path being in the
default search list for the toolchain), and the references in the lws
includes to the tls includes meaning that explicit paths for that must be
available at consuming cmakes.

This patch enhances the cmake config installed by lws to deal with adding
the lws include paths to CMAKE_REQUIRED_INCLUDES and include_directories,
so it can be found before the target is introduced.

The tls include is passed back up the CMakeLists layers and the lws targets
marked with target_include_directories(PUBLIC) with them, so they are
understood as needed by consumers.

More boilerplate is moved out of the example consuming cmakes.

After this, on machines with previous installs of older lws, you may have to
clean out the cmake install path, that is usually something like

/usr/local/lib/cmake/libwebsockets/*

before make installing lws and putting the latest content in there.
2021-10-28 08:12:48 +01:00
..
FindGit.cmake add FindGit.cmake 2013-02-18 18:34:10 +08:00
FindMiniz.cmake cmake: miniz: add as option 2019-07-03 19:46:23 +01:00
FindOpenSSLbins.cmake cmake: windows: update FindOpenSSLbins.cmake 2020-11-26 09:23:24 +00:00
libwebsockets-config-version.cmake.in cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
libwebsockets-config.cmake.in cmake: bring tls include requirement out as PUBLIC 2021-10-28 08:12:48 +01:00
lws_config.h.in jrpc: add support 2021-10-11 09:10:15 +01:00
lws_config_private.h.in plat: baremetal and rpi pico support 2021-10-08 09:48:41 +01:00
LwsCheckRequirements.cmake cmake: add inclusion of CheckIncludeFile in req 2021-10-16 08:23:14 +01:00
pico_sdk_import.cmake plat: baremetal and rpi pico support 2021-10-08 09:48:41 +01:00
UseRPMTools.cmake rpm: do parallel compilation during rpm builds 2018-05-26 09:20:20 +08:00