cmake: fix build on MSYS2
authorRafael Kitover <rkitover@gmail.com>
Sat, 1 Jun 2019 09:48:02 +0000 (09:48 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 4 Aug 2019 19:18:49 +0000 (21:18 +0200)
commitf5e769ff450b592bc645473e11f9258aec241f0e
treec28f5a75d4b11e1ec978e154d83c70ccc494a24f
parent063f4bce9c3c3d6e4efe68c0e95d95213ad08f52
cmake: fix build on MSYS2

Some minor changes to allow building easily on MSYS2:

- don't check for snorenotify on MSYS2 because it segfaults on startup

- don't use -fstack-protector-strong (libssp) on MinGW because it
currently causes segfaults during static initialization

https://sourceforge.net/p/mingw-w64/bugs/755/

- use the `cat` command to read files when using the 'MSYS Makefiles'
generator, and not the cmd.exe `type` command

- update doc for the quassel_add_module function wrt. 7d0879ab

Tested to build correctly on MSYS2 with both the 'MSYS Makefiles'
generator and the Ninja generator using a native ninja.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
CMakeLists.txt
cmake/QuasselCompileSettings.cmake
cmake/QuasselMacros.cmake