Skip to content

Commit ae6dea7

Browse files
committed
cmake: add CMake option BUILD_OROGEN (defaults to OFF)
orogen dependency utilrb depends on metaruby (https://github.com/rock-core/tools-metaruby), a package that is not available from default package repostories of common Linux distributions. It needs to be installed as a Ruby gem or from source. Until a unified way of bootstrapping the toolchain with or without Ruby and optional packages I therefore suggest to disable orogen for CMake-based builds by default.
1 parent 2648cbe commit ae6dea7

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

CMakeLists.txt

+17-10
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ else()
8080
set(CORBA_IMPLEMENTATION ${CORBA_IMPLEMENTATION} CACHE STRING "The implementation of CORBA to use (allowed values: TAO or OMNIORB )" )
8181
endif()
8282

83+
#
84+
# Enable/disable orogen and dependencies
85+
#
86+
option(BUILD_OROGEN "Build orogen and its dependencies" OFF)
87+
8388
#############
8489
# Git magic #
8590
#############
@@ -171,16 +176,18 @@ build_external_project(ocl
171176
DEPENDS log4cpp rtt
172177
)
173178

174-
build_external_project(utilrb)
175-
build_external_project(typelib
176-
DEPENDS utilrb
177-
)
178-
build_external_project(rtt_typelib
179-
DEPENDS rtt typelib
180-
)
181-
build_external_project(orogen
182-
DEPENDS rtt rtt_typelib utilrb
183-
)
179+
if(BUILD_OROGEN)
180+
build_external_project(utilrb)
181+
build_external_project(typelib
182+
DEPENDS utilrb
183+
)
184+
build_external_project(rtt_typelib
185+
DEPENDS rtt typelib
186+
)
187+
build_external_project(orogen
188+
DEPENDS rtt rtt_typelib utilrb
189+
)
190+
endif()
184191

185192
#######################################
186193
# Build orocos_toolchain meta package #

0 commit comments

Comments
 (0)