aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2021-07-14 14:03:43 +0100
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2021-07-15 10:05:40 +0100
commit9d2b692afd7eb7dd03958d7111068fa7cce30e55 (patch)
treeefd2ea01f60a485452394c07aa651388981358f2 /cmake
parentdfc9421dcf0fc97ad99638df501b95cb162e95b2 (diff)
downloadtigervnc-9d2b692afd7eb7dd03958d7111068fa7cce30e55.tar.gz
tigervnc-9d2b692afd7eb7dd03958d7111068fa7cce30e55.zip
Allow building with -DBUILD_VIEWER=OFF
Without this change I get CMake errors due to use of ${FLTK_INCLUDE_DIR} and references to the non-existent vncviewer target.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/StaticBuild.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/StaticBuild.cmake b/cmake/StaticBuild.cmake
index 1af9893b..b96d800b 100644
--- a/cmake/StaticBuild.cmake
+++ b/cmake/StaticBuild.cmake
@@ -119,7 +119,7 @@ if(BUILD_STATIC)
string(STRIP ${GNUTLS_LIBRARIES} GNUTLS_LIBRARIES)
endif()
- if(FLTK_FOUND)
+ if(DEFINED FLTK_LIBRARIES)
set(FLTK_LIBRARIES "-Wl,-Bstatic -lfltk_images -lpng -ljpeg -lfltk -Wl,-Bdynamic")
if(WIN32)