kwiver icon indicating copy to clipboard operation
kwiver copied to clipboard

Build error if TESTS && SPROKIT && !PROCESSES

Open mwoehlke-kitware opened this issue 8 years ago • 0 comments

If the following CMake options are as noted:

KWIVER_ENABLE_PROCESSES          OFF
KWIVER_ENABLE_SPROKIT            ON
KWIVER_ENABLE_TESTS              ON

...KWIVER fails to build:

In file included from .../sprokit/tests/sprokit/pipeline/test_non_blocking.cxx:38:
.../sprokit/processes/adapters/output_adapter.h:39:10: fatal error: 'sprokit/processes/adapters/kwiver_adapter_export.h' file not found
#include <sprokit/processes/adapters/kwiver_adapter_export.h>

This is because certain tests depend on the kwiver_adapter library (which is only built if KWIVER_ENABLE_PROCESSES is ON), but the tests are not conditional on KWIVER_ENABLE_PROCESSES.

mwoehlke-kitware avatar Oct 31 '17 21:10 mwoehlke-kitware