Instead of adding an empty element to the list, just check properly whether the list exists.
if(Q_WS_X11)
set(Missing)
if(Q_WS_X11)
set(Missing)
# Make sure, the needed programs are in PATH
find_program(PCREGREP_EXE "pcregrep")
if (NOT PCREGREP_EXE)
# Make sure, the needed programs are in PATH
find_program(PCREGREP_EXE "pcregrep")
if (NOT PCREGREP_EXE)
endif()
endforeach()
endif()
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}")
if(Missing)
message(STATUS "Missing libraries or programs to create xvkbd: ${Missing}")