mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 12:23:34 +08:00
16 lines
518 B
CMake
16 lines
518 B
CMake
|
|
# 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(STATUS "Building with uorb publisher rules support")
|
|
add_definitions(-DORB_USE_PUBLISHER_RULES)
|
|
|
|
message(STATUS "Building without lockstep for replay")
|
|
set(ENABLE_LOCKSTEP_SCHEDULER no)
|
|
elseif(CMAKE_BUILD_TYPE STREQUAL FuzzTesting)
|
|
set(ENABLE_LOCKSTEP_SCHEDULER no)
|
|
else()
|
|
set(ENABLE_LOCKSTEP_SCHEDULER yes)
|
|
endif()
|