Commit graph

71 commits

Author SHA1 Message Date
ReenigneArcher
546895a93a
build(cmake): fix for boost 1.89 2025-09-13 11:32:38 -04:00
eidheim
27b41f5ee1 Added -Wsign-conversion 2023-04-25 13:03:22 +02:00
Hermann von Kleist
b6783d40be CMake: find_package(asio) if available 2023-04-04 14:23:05 +02:00
eidheim
84170850f3 Resolved conflicts 2023-04-04 12:50:54 +02:00
eidheim
8d9926c6c9 Merge branch 'refactor-boot-linking' of https://gitlab.com/stertingen/Simple-Web-Server 2023-04-04 12:13:56 +02:00
Hermann von Kleist
cde35e2abf Set CXX_STANDARD property for declared targets
CMake 3.8 provides the slightly cooler compile feature cxx_std_11, but
we are on 3.7 for now.
2023-03-31 17:03:23 +02:00
Hermann von Kleist
17c1a8b65f Only link Boost libraries which are actually needed.
Asio does not require Boost.
Bosot.Asio requires Boost.System and optionally Boost.Regex.
The examples require Boost headers and Boost.Filesystem.
The CMake targets pull in their dependencies recursively, no need to
explicitly link the examples to Boost.System.
Boost.Thread should not be neede, according to the docs.
2023-03-31 16:29:24 +02:00
Hermann von Kleist
ee1a69ba4a Use system includes for asio and if used as subdirectory 2023-03-31 11:08:36 +02:00
Hermann von Kleist
fff70e5231 Use OpenSSL::* CMake targets 2023-03-09 10:48:11 +01:00
Hermann von Kleist
a8b7dab938 Use Boost::* CMake targets 2023-03-09 10:48:06 +01:00
Hermann von Kleist
0ec5a11473 Use CMake target Threads::Threads 2023-03-09 10:48:02 +01:00
Hermann von Kleist
244cfc4271 Require CMake 3.7 2023-03-09 10:47:53 +01:00
eidheim
edf99c6426 Fixed OPENSSL_ROOT_DIR for MacOS m1 and m2 setups 2022-09-30 11:59:55 +02:00
eidheim
1bb89e1e8e Fixes #317: Make use of ASIO_STANDALONE when using standalone asio in order to compile on older asio versions without boost 2021-03-26 10:11:39 +01:00
eidheim
dd6094b91c Minor style format correction 2020-10-26 14:28:28 +01:00
eidheim
190e3498c3 Fixes #305: no longer forces on BUILD_TESTING 2020-09-22 16:41:47 +02:00
eidheim
f6df4cde4e Made use of libfuzzer 2020-08-08 11:14:37 +02:00
eidheim
8ee71cddbb Fixes #301: Do not run add_compile_options when Simple-Web-Server is a sub-project 2020-06-26 18:51:22 +02:00
eidheim
ec593ebd93 Fixes #287: fixed STREQUAL expressions in CMakeLists.txt 2020-04-03 11:03:19 +02:00
eidheim
44b787e27a Removed flag -Wsign-conversion for now due to excessive warnings from boost 2019-08-26 14:11:26 +02:00
David Wedderwille
3c251dfadb create the examples only ( http_examples.cpp / https_examples.cpp ) if the boost library is found. 2019-08-13 13:44:23 +02:00
Fabian Sandoval Saldias
c466ed82d5 Add option to build without OpenSSL 2019-07-10 16:07:57 +02:00
eidheim
e1d1404ff7 Fixes #268 : Added mutex.hpp to cmake's install function 2019-07-03 20:25:13 +02:00
eidheim
a743915d72 Made use of clang's Thread Safety Analysis 2019-06-25 11:29:36 +02:00
eidheim
f1327d3bc3 Renamed HAVE_ASIO to ASIO_PATH 2019-06-24 10:20:32 +02:00
eidheim
b0bd7df473 Cleanup of merge request 239 , and reverted changes where examples are not built when standalone asio is used 2019-06-24 10:17:06 +02:00
David Wedderwille
e606f7a4e7 cmake: fixes compile error when "USE_STANDALONE_ASIO" is set.
Signed-off-by: David Wedderwille <davidwe@posteo.de>
2019-06-21 22:08:51 +02:00
eidheim
c2a10cc72a Fixed indentation in last commit 2019-06-19 14:57:01 +02:00
David Wedderwille
a73ce8b148 add asio_compatibility.hpp to the destination directory 2019-06-19 12:07:43 +00:00
eidheim
e334a86fc2 Minor variable name change in CMakeLists.txt 2018-11-14 09:10:00 +01:00
Antoine Villeret
6c548d517e Replace CHECK_INCLUDE_FILE_CXX() with CMake find_file()
the former doesn't work when cross-compiling
2018-11-13 11:42:50 +01:00
taivop
231e5f0065 Update CMake minimum required version to 3.0 (#191) 2018-01-08 13:41:12 +02:00
eidheim
5a7c021dab Added MSVC support to cmake files (not tested, but hopefully it works). Some tests are disabled due to lacking MSVC options. 2017-11-14 19:44:40 +01:00
eidheim
54a3d2ef5a Fixes compilation issue on Debian Jessie when option USE_STANDALONE_ASIO is turned on 2017-11-08 09:47:53 +01:00
eidheim
29f8cc5669 Further CMakeLists.txt improvements and cleanups 2017-11-07 18:26:40 +01:00
eidheim
0d8caeca15 Modernised all CMakeLists.txt files, and made it easier to use Simple-Web-Server as a sub-project 2017-11-07 11:45:17 +01:00
eidheim
64bd58e5da Fixes #149: added and resolved -Wsign-conversion warnings 2017-08-12 15:36:28 +02:00
eidheim
95d44b804d Reverted boost thread removal 2017-07-24 07:37:33 +02:00
eidheim
632bb1ec2f Replaced docker image debian:testing with eidheim/testing, and removed boost.thread and boost.date_time from CMakeLists 2017-07-19 12:56:17 +02:00
eidheim
3ee9f8dc52 Added all header files to cmake install target. Also added -O3 to one test on travis 2017-06-26 11:50:21 +02:00
eidheim
ba4eec7ebe Created Utility.hpp and moved some code into this file. Also improved parse_query_string. 2017-06-22 12:08:56 +02:00
Sébastien Huss
36c2264bdc oups forgot to link to openssl 2016-12-20 22:18:00 +01:00
Sébastien Huss
d4f5fddba3 Made the cache feature secured in #ifdef block and added it to the http
example too
2016-12-20 22:15:58 +01:00
eidheim
6138e95d08 Minor cleanup of CMakeLists.txt 2016-11-23 14:06:58 +01:00
eidheim
8e0d3142bf Added fallback to boost::regex if gcc version<4.9. Fixes #77 2016-10-25 08:33:02 +02:00
eidheim
78d68b063b Now uses std::regex instead of boost::regex 2016-10-24 14:54:09 +02:00
eidheim
7fbb74b456 Fixes #62, required boost version is now 1.53 2016-08-18 12:36:17 +02:00
Alfredo Luque
7ad8de4abc rename include subdirectory to simple-web-server 2016-08-10 15:56:32 -04:00
alfredo
9124a3edd2 Add install target for headers 2016-08-09 20:41:08 -04:00
eidheim
d6f3d55019 Renamed test folder to tests 2016-08-03 12:15:32 +02:00