Skip to content

Commit

Permalink
Only use catkin env hook command if building with catkin.
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoote authored and TSC21 committed Apr 13, 2018
1 parent 38c0d07 commit 0df46c5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,11 @@ foreach(plugin ${plugins})
endforeach()

# Configure the setup script
catkin_add_env_hooks(50_sitl_gazebo_setup
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/cmake
SHELLS sh)

if (catkin_FOUND)
catkin_add_env_hooks(50_sitl_gazebo_setup
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/cmake
SHELLS sh)
endif()

#############
## Install ##
Expand Down

0 comments on commit 0df46c5

Please sign in to comment.