gmxTestCXX11 can fail because of linker issue
We use std::thread in the c++11 test and we don't add any linker flags. Some compilers (e.g. ICC 17) require a linker flag for that under certain conditions (e.g. -static).
1) We could move the check after we find thread support.
2) We remove the usage of std::thread from the c++11 check
#3 Updated by Mark Abraham about 3 years ago
Ah, I now see that even with gcc and clang on Linux, one needs to link libpthread, so needs to use
-pthread. So we can indeed move the threading-support check before the C++11 check (and add the linker flag icc needs - which should come from the threading test, right?). In principle, the C++11 standard library could use other back ends, but if that ever becomes a thing, then we might separate the C++11 threading test from the other C++11 tests.