Commit 88792137 authored by Christian Beier's avatar Christian Beier

CMake: Threads can be available even if SDL is not.

parent 56af603e
...@@ -20,9 +20,9 @@ find_package(GnuTLS) ...@@ -20,9 +20,9 @@ find_package(GnuTLS)
find_package(Threads) find_package(Threads)
find_package(X11) find_package(X11)
if(SDL_FOUND) # == pthread.h available if(Threads_FOUND)
option(TIGHTVNC_FILETRANSFER "Enable filetransfer" ON) option(TIGHTVNC_FILETRANSFER "Enable filetransfer" ON)
endif(SDL_FOUND) endif(Threads_FOUND)
if(ZLIB_FOUND) if(ZLIB_FOUND)
set(LIBVNCSERVER_HAVE_LIBZ 1) set(LIBVNCSERVER_HAVE_LIBZ 1)
endif(ZLIB_FOUND) endif(ZLIB_FOUND)
...@@ -188,12 +188,12 @@ set(LIBVNCSERVER_TESTS ...@@ -188,12 +188,12 @@ set(LIBVNCSERVER_TESTS
vncev vncev
) )
if(SDL_FOUND) if(Threads_FOUND)
set(LIBVNCSERVER_TESTS set(LIBVNCSERVER_TESTS
${LIBVNCSERVER_TESTS} ${LIBVNCSERVER_TESTS}
blooptest blooptest
) )
endif(SDL_FOUND) endif(Threads_FOUND)
if(TIGHTVNC_FILETRANSFER) if(TIGHTVNC_FILETRANSFER)
set(LIBVNCSERVER_TESTS set(LIBVNCSERVER_TESTS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment