Linking CXX shared library ../bin/libOpenIGTLink.so cd /home/stefan/MITK-superbuild-3.16/ep/src/OpenIGTLink-build/Source && /usr/bin/cmake -E cmake_link_script CMakeFiles/OpenIGTLink.dir/link.txt --verbose=1 /usr/bin/g++-8 -fPIC -DBOOST_ALL_DYN_LINK -std=c++14 -ftemplate-depth-50 -fno-tree-vectorize -O3 -DNDEBUG pthread -shared -Wl,-soname,libOpenIGTLink.so.3 -o ../bin/libOpenIGTLink.so.3.0.0 (...) -Wl,-rpath,:::::::::::::: -lm -lpthread g++-8: error: pthread: No such file or directory
There's an orphaned "pthread" in the command above additionally to "-lpthread". Possibly a CMake bug.