summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2018-09-27 19:50:44 +0200
committerChristian Beier <dontmind@freeshell.org>2018-09-27 19:50:44 +0200
commit5c968dd8a4679817c472cbe53b118b913ea8b25c (patch)
tree1a158e410eb3da1d1b4b1eae8e710659f86eb3d9
parent587555c12a8d4f1d1775e734150ad40c3c19cb07 (diff)
downloadlibtdevnc-5c968dd8.tar.gz
libtdevnc-5c968dd8.zip
CMake: fix build error that occured on Windows with CMake 3.12
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 70907b8..3f5e756 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -187,6 +187,8 @@ else()
endif(ZLIB_FOUND)
if(JPEG_FOUND)
set(LIBVNCSERVER_HAVE_LIBJPEG 1)
+else()
+ unset(JPEG_LIBRARIES) # would otherwise confuse target_link_libraries()
endif(JPEG_FOUND)
if(PNG_FOUND)
set(LIBVNCSERVER_HAVE_LIBPNG 1)