diff options
author | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2021-07-14 14:03:43 +0100 |
---|---|---|
committer | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2021-07-15 10:05:40 +0100 |
commit | 9d2b692afd7eb7dd03958d7111068fa7cce30e55 (patch) | |
tree | efd2ea01f60a485452394c07aa651388981358f2 /cmake | |
parent | dfc9421dcf0fc97ad99638df501b95cb162e95b2 (diff) | |
download | tigervnc-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.cmake | 2 |
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) |