Skip to content

Commit

Permalink
Don't attempt to pass empty variables to yarp_install
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Dec 22, 2019
1 parent a1c1373 commit c766901
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions share/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,15 @@
# Author: Juan G Victores and Raul de Santos Rico
# CopyPolicy: Released under the terms of the GNU GPL v2.0

set(applications)
set(contexts)

if(ENABLE_launchCanBus)
list(APPEND contexts contexts/launchCanBus)
yarp_install(DIRECTORY contexts/launchCanBus
DESTINATION ${ROBOTICSLAB-YARP-DEVICES_CONTEXTS_INSTALL_DIR})
endif()

if(ENABLE_SpaceNavigator)
list(APPEND applications applications/yarpmanager/spaceNavigator)
yarp_install(DIRECTORY applications/yarpmanager/spaceNavigator
DESTINATION ${ROBOTICSLAB-YARP-DEVICES_APPLICATIONS_INSTALL_DIR}/yarpmanager)
endif()

yarp_install(FILES applications/yarpmanager/ymanager.ini
DESTINATION ${ROBOTICSLAB-YARP-DEVICES_APPLICATIONS_INSTALL_DIR}/yarpmanager)

yarp_install(DIRECTORY ${applications}
DESTINATION ${ROBOTICSLAB-YARP-DEVICES_APPLICATIONS_INSTALL_DIR}/yarpmanager)

yarp_install(DIRECTORY ${contexts}
DESTINATION ${ROBOTICSLAB-YARP-DEVICES_CONTEXTS_INSTALL_DIR})

0 comments on commit c766901

Please sign in to comment.