--- ThirdParty/libproj4/vtklibproj4/CMakeLists.txt.orig	2017-08-30 20:55:05 UTC
+++ ThirdParty/libproj4/vtklibproj4/CMakeLists.txt
@@ -50,10 +50,10 @@ find_package (Threads)
 
 include(CheckIncludeFiles)
 include(CheckSymbolExists)
-CHECK_SYMBOL_EXISTS(PTHREAD_MUTEX_RECURSIVE pthread.h HAVE_PTHREAD_MUTEX_RECURSIVE_DEFN)
-if (HAVE_PTHREAD_MUTEX_RECURSIVE_DEFN)
+#CHECK_SYMBOL_EXISTS(PTHREAD_MUTEX_RECURSIVE pthread.h HAVE_PTHREAD_MUTEX_RECURSIVE_DEFN) # test fails, reported upstream: https://gitlab.kitware.com/vtk/vtk/issues/17178
+#if (HAVE_PTHREAD_MUTEX_RECURSIVE_DEFN)
     add_definitions(-DHAVE_PTHREAD_MUTEX_RECURSIVE=1)
-endif()
+#endif()
 
 # Set a default build type for single-configuration cmake generators if
 # no build type is set.
