1
0
mirror of https://gitlab.com/obbart/universal_robots_ros_driver.git synced 2026-04-10 10:00:48 +02:00

Select CMake build type if not configured. (#225)

The refactored version of this driver benefits from optimalisations so selecting a build type with optimalisations enabled is important.

Only if the user hasn't configured a build type do we do this to prevent overriding whatever was already configured.
This commit is contained in:
G.A. vd. Hoorn
2018-11-06 14:53:20 +01:00
committed by Miguel Prada
parent 1b1972891c
commit ef6d920a8e

View File

@@ -3,6 +3,11 @@ project(ur_modern_driver)
add_definitions( -DROS_BUILD )
if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
message("${PROJECT_NAME}: You did not request a specific build type: selecting 'RelWithDebInfo'.")
set(CMAKE_BUILD_TYPE RelWithDebInfo)
endif()
find_package(catkin REQUIRED
COMPONENTS
actionlib