build/meson: Don't build slam if tracking is disabled

Fixes build with -Dtracking=disabled
This commit is contained in:
Christoph Haag 2021-09-16 12:55:14 +02:00
parent ec5b5f9e1d
commit dc15dbf75d

View file

@ -104,7 +104,7 @@ if libbsd.found() and not get_option('libbsd').disabled()
have_conf.set('XRT_HAVE_LIBBSD', true)
endif
if slam.found()
if slam.found() and build_tracking
have_conf.set('XRT_HAVE_SLAM', true)
if slam.name() == 'kimera_vio'
have_conf.set('XRT_HAVE_KIMERA_SLAM', true)