summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2011-03-12 22:01:31 +0100
committerChristian Beier <dontmind@freeshell.org>2011-03-12 22:01:31 +0100
commit887921373489576e812f48053ae5a7aefa661a28 (patch)
treede6e557d668b531b06eabd1d52d35d069776742a /CMakeLists.txt
parent56af603ec1d721b0f1aeff43068601f65cf0b488 (diff)
downloadlibtdevnc-887921373489576e812f48053ae5a7aefa661a28.tar.gz
libtdevnc-887921373489576e812f48053ae5a7aefa661a28.zip
CMake: Threads can be available even if SDL is not.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 137c4dd..37b8e4c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,9 +20,9 @@ find_package(GnuTLS)
find_package(Threads)
find_package(X11)
-if(SDL_FOUND) # == pthread.h available
+if(Threads_FOUND)
option(TIGHTVNC_FILETRANSFER "Enable filetransfer" ON)
-endif(SDL_FOUND)
+endif(Threads_FOUND)
if(ZLIB_FOUND)
set(LIBVNCSERVER_HAVE_LIBZ 1)
endif(ZLIB_FOUND)
@@ -188,12 +188,12 @@ set(LIBVNCSERVER_TESTS
vncev
)
-if(SDL_FOUND)
+if(Threads_FOUND)
set(LIBVNCSERVER_TESTS
${LIBVNCSERVER_TESTS}
blooptest
)
-endif(SDL_FOUND)
+endif(Threads_FOUND)
if(TIGHTVNC_FILETRANSFER)
set(LIBVNCSERVER_TESTS