cmake: Modernize compile settings; require C++14
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 22 Aug 2018 18:15:50 +0000 (20:15 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 18 Nov 2018 10:06:43 +0000 (11:06 +0100)
commitd9e586707522241d628a90466e13722e342cc28a
tree94167805eceaccac087a2bb50d5aa4b9655b694f
parent46bba99808aad823adc53744e6d93f5af9bf729d
cmake: Modernize compile settings; require C++14

Clean up QuasselCompileSettings.cmake, treat GNU and Clang the same.
Use add_compile_options() instead of CMAKE_CXX_FLAGS. Curate the list
of compiler flags, and add sensible linker flags, too.

Check explicitly for required compiler features using CMake's
target_compile_features(), rather than hard-coding compiler versions.
The set of required features basically implies that we now require
a C++14 compiler (even though the new stuff isn't used in the code
yet).
INSTALL
cmake/QuasselCompileFeatures.cmake [new file with mode: 0644]
cmake/QuasselCompileSettings.cmake
cmake/QuasselMacros.cmake