node_manager_fkie: removed install author warning
@@ -55,7 +55,12 @@ install(
)
# On Ubuntu, create and install a desktop launcher for node_manager.
-if (${CMAKE_SYSTEM_NAME} STREQUAL Linux)
+find_program(DFI desktop-file-install)
+if (NOT DFI)
+ message(STATUS "Skip installing Unity desktop launcher: desktop-file-install not found!")
+endif()
+
+if ((${CMAKE_SYSTEM_NAME} STREQUAL Linux) AND (EXISTS ${DFI}))
# Define where to create the launcher file.
set(NODE_MANAGER_LAUNCHER ${CMAKE_CURRENT_BINARY_DIR}/node_manager.desktop)
@@ -74,4 +79,4 @@ Categories=Utility;Development;"
# Install the launcher file.
install(CODE "set(NODE_MANAGER_LAUNCHER \"${NODE_MANAGER_LAUNCHER}\")")
install(SCRIPT InstallLauncher.cmake)
-endif(${CMAKE_SYSTEM_NAME} STREQUAL Linux)
+endif()
