kwiver
kwiver copied to clipboard
Build error if TESTS && SPROKIT && !PROCESSES
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.