Overlay/games-action/minetest/files/minetest-0.4.3-jthread.patch

20 lines
558 B
Diff

From: hasufell <julian.ospald@googlemail.com>
Date: Mon Apr 23 21:34:29 UTC 2012
fix FIND_PATH to correctly find jthread
use shared lib
--- cmake/Modules/FindJthread.cmake
+++ cmake/Modules/FindJthread.cmake
@@ -1,8 +1,8 @@
# Look for jthread, use our own if not found
-FIND_PATH(JTHREAD_INCLUDE_DIR jthread.h)
+FIND_PATH(JTHREAD_INCLUDE_DIR jthread.h PATHS /usr/include/jthread)
-FIND_LIBRARY(JTHREAD_LIBRARY NAMES jthread)
+FIND_LIBRARY(JTHREAD_LIBRARY NAMES libjthread.so)
IF(JTHREAD_LIBRARY AND JTHREAD_INCLUDE_DIR)
SET( JTHREAD_FOUND TRUE )