Finally found it! This bothered me for so long.
I'm trying to build paraview under cygwin with mingw-gcc. I'm getting the following error: error: 'strdup' was not declared in this scope although cmake does find it. More details: https://public.kitware.com/pipermail/paraview/2017-December/041532.html