diff options
author | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-07-20 18:29:48 +0200 |
---|---|---|
committer | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-07-20 18:29:48 +0200 |
commit | 33e80dae7f48eac99d5c692d7429e37b11666c96 (patch) | |
tree | d6a738abe0adca833b6342bc58731dbe0037cad4 /cmake/Modules/FindJthread.cmake | |
parent | e5dc58e7103d46298bbca66b0a6a7d9d61146e7e (diff) | |
parent | 4f53619a15cd5a1cd18e8e3eb7c5eb21608b460e (diff) | |
download | minetest-33e80dae7f48eac99d5c692d7429e37b11666c96.tar.gz minetest-33e80dae7f48eac99d5c692d7429e37b11666c96.tar.bz2 minetest-33e80dae7f48eac99d5c692d7429e37b11666c96.zip |
Merge branch 'master' of github.com:erlehmann/minetest-delta
Diffstat (limited to 'cmake/Modules/FindJthread.cmake')
-rw-r--r-- | cmake/Modules/FindJthread.cmake | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cmake/Modules/FindJthread.cmake b/cmake/Modules/FindJthread.cmake new file mode 100644 index 000000000..302a3c22f --- /dev/null +++ b/cmake/Modules/FindJthread.cmake @@ -0,0 +1,18 @@ +# Look for jthread, use our own if not found + +FIND_PATH(JTHREAD_INCLUDE_DIR jthread.h) + +FIND_LIBRARY(JTHREAD_LIBRARY NAMES jthread) + +IF(JTHREAD_LIBRARY AND JTHREAD_INCLUDE_DIR) + SET( JTHREAD_FOUND TRUE ) +ENDIF(JTHREAD_LIBRARY AND JTHREAD_INCLUDE_DIR) + +IF(JTHREAD_FOUND) + MESSAGE(STATUS "Found system jthread header file in ${JTHREAD_INCLUDE_DIR}") + MESSAGE(STATUS "Found system jthread library ${JTHREAD_LIBRARY}") +ELSE(JTHREAD_FOUND) + SET(JTHREAD_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/jthread) + SET(JTHREAD_LIBRARY jthread) + MESSAGE(STATUS "Using project jthread library") +ENDIF(JTHREAD_FOUND) |