mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
CMake: xvkbd: Check whether the list exists
Instead of adding an empty element to the list, just check properly whether the list exists.
This commit is contained in:
parent
d3634b6cd5
commit
f43e38fa9f
@ -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}")
|
||||
|
Loading…
Reference in New Issue
Block a user