From db13ac4c531a06b6a25fbe73d8ad30ec407e9a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Thu, 30 Jun 2016 15:17:44 +0200 Subject: [PATCH] posix_sitl_default.cmake: add -DORB_USE_PUBLISHER_RULES if it's a replay build --- cmake/configs/posix_sitl_default.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmake/configs/posix_sitl_default.cmake b/cmake/configs/posix_sitl_default.cmake index 5721e30d45..07b77c8478 100644 --- a/cmake/configs/posix_sitl_default.cmake +++ b/cmake/configs/posix_sitl_default.cmake @@ -112,3 +112,12 @@ set(config_sitl_debugger ) set_property(CACHE config_sitl_debugger PROPERTY STRINGS "disable;gdb;lldb") + +# If the environment variable 'replay' is defined, we are building with replay +# support. In this case, we enable the orb publisher rules. +set(REPLAY_FILE "$ENV{replay}") +if(REPLAY_FILE) + message("Building with uorb publisher rules support") + add_definitions(-DORB_USE_PUBLISHER_RULES) +endif() +