Oops.  Apple version doesn't need to link with libdl, and we don't want to clobber the existing value of FLTK_LIBRARIES.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4674 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1d8645a..3cee4a6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -314,8 +314,7 @@
     set(FLTK_LIBRARIES)
     if(APPLE)
       set(FLTK_LIBRARIES "-framework Carbon -framework Cocoa -framework ApplicationServices")
-    endif()
-    if(NOT WIN32)
+    elseif(NOT WIN32)
       set(FLTK_LIBRARIES "-ldl")
     endif()
     message(STATUS "Using included FLTK library")