Closed DeveloperPaul123 closed 5 years ago
Hi Paul, Thank you for the feedback. I agree with you. One of the contributors was so kind to create the initial version of the CMake script. I have planned to add building examples, and definitely there are more space for improvements. If you don't mind, make a PR and then I will test it and merge it.
Sounds good!
@karastojko How do you feel about upgrading the minimum required version of CMake needed? I can really clean up and improve the setup greatly, but it will require some of the newer features available in the latest versions of CMake (probably somewhere between 3.8 and 3.10).
@DeveloperPaul123 @karastojko
I'm personally a "bleeding-edge" kind of dev, and since I'm one of the people who are using this library in a commercial production setting (shameless self-plug: https://firstbill.de , a German invoicing web-app in C++) I would like to give my opinion: Our production servers are already running cmake 3.10.2 (openSUSE Leap 15), so this would be okay for us.
But it might be a problem for others, see:
https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/Life-Cycle-Considerations
@DeveloperPaul123 @EarthlingKira
I am fine with CMake 3.10, I've been using versions 3.10, 3.11 i 3.12 for a while. From the moment when Boost 1.66 became the minimal required version (starting at July), I have also upgraded CMake requirements. Anyway, the version 2.8 in CMakeLists.txt
is put by the original contributor @TrevorMellon , so perhaps he could advice on this topic too.
@karastojko I see that you have made some changes to the cmake setup. Do you prefer to keep everything in a single file?
One file for the library and one for the examples is just fine. I am merging the PR to master.
Awesome thanks!
First just want to say this is a great library, but I have some questions/suggestions regarding the project setup.
BUILD_SHARED_LIBS
.cmake_policy
call to the top level cmake lists to avoid the known bug with cmake 3.12 regardFindDoxygen
MAILIO_BUILD_TESTS
,MAILIO_BUILD_DOCUMENTATION
,MAILIO_BUILD_EXAMPLES
.Boost_FOUND
is probably not needed since it's required via CMake.Let me know what you think about the above items. If you're open to it I can file a PR to address all of these items.