File freeocl-0.3.6.git1515258797.6d1d5c9-fix-building.patch of Package mingw64-freeocl
--- a/CMakeLists.txt 2018-01-06 18:13:17.000000000 +0100
+++ b/CMakeLists.txt 2022-10-14 12:28:52.948730047 +0200
@@ -10,9 +10,9 @@
set(CMAKE_THREAD_PREFER_PTHREAD pthread)
include(FindThreads)
-if(NOT CMAKE_THREAD_LIBS_INIT AND NOT CMAKE_HAVE_THREADS_LIBRARY)
+if(NOT Threads_FOUND)
message(FATAL_ERROR "thread library not found")
-endif(NOT CMAKE_THREAD_LIBS_INIT AND NOT CMAKE_HAVE_THREADS_LIBRARY)
+endif()
# Default is debug build
if(NOT CMAKE_BUILD_TYPE)