Make Cygwin build work
commit22298866fbc07572e4128f5973dc8c7a8d256f14
authorMark Abraham <mark.j.abraham@gmail.com>
Thu, 28 May 2020 21:56:10 +0000 (28 23:56 +0200)
committerPaul Bauer <paul.bauer.q@gmail.com>
Fri, 29 May 2020 13:21:48 +0000 (29 13:21 +0000)
tree6c3a93d072e6facb9063e3577ff59cfbb2ce665a
parent7c48320e87f42f2cad37aabb94e27e39c33ec9cf
Make Cygwin build work

Originally CMake didn't provide C++ language version flags, so GROMACS
managed that itself. Now that GROMACS lets CMake manage it, we always
get the -std=c++17 flag, rather than (say) -std=gnu++17 to allow
extensions to the std headers. In various places, GROMACS relied on
POSIX functionality that is available by default on Linux, but on
Cygwin required the GNU extensions to the C++ language dialect. This
change fixes several such places, mostly by requiring the POSIX
extensions needed.

Removed an include of sys/syscall.h that was unused, unnecessary, and
only present on Linux.

Moved an inclusion of gtest.h from a header into a source file because
it was only needed there.

Fixed some warnings about unused things.
cmake/TestPipes.cpp
docs/release-notes/2021/major/portability.rst
src/api/cpp/tests/testingconfiguration.h
src/api/cpp/tests/version.cpp
src/external/CMakeLists.txt
src/gromacs/CMakeLists.txt
src/gromacs/mdrunutility/threadaffinity.cpp
src/gromacs/utility/futil.cpp
src/testutils/TestMacros.cmake