]> git.lyx.org Git - features.git/commitdiff
CMake: xvkbd: Check whether the list exists
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 23 Jul 2013 18:42:31 +0000 (20:42 +0200)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 23 Jul 2013 18:42:53 +0000 (20:42 +0200)
Instead of adding an empty element to the list, just check properly whether the list exists.

development/autotests/CMakeLists.txt

index 13a5b1f0ad1f8b0b5cf45991d89815d492606d2a..c5fd05d2e362f8383fbe1866937d291d905e3f2f 100644 (file)
@@ -6,7 +6,7 @@
 
 if(Q_WS_X11)
   set(Missing)
-  set(XVFBDLIBS "")
+  set(XVFBDLIBS)
   # Make sure, the needed programs are in PATH
   find_program(PCREGREP_EXE "pcregrep")
   if (NOT PCREGREP_EXE)
@@ -54,7 +54,9 @@ if(Q_WS_X11)
       endif()
     endforeach()
   endif()
-  list(REMOVE_DUPLICATES XVFBDLIBS)
+  if (XVFBDLIBS)
+    list(REMOVE_DUPLICATES XVFBDLIBS)
+  endif()
 
   if(Missing)
     message(STATUS "Missing libraries or programs to create xvkbd: ${Missing}")