Some of the files included in test/CMakeLists.txt need to have ENABLE_DATA_TOOLS option turned on, else the tests fail to build:
Eg:
$ cd build
$ cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLOGGING_LEVEL=WARN -DENABLE_NODE_BINDINGS=Off -DENABLE_PYTHON_BINDINGS=Off -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DENABLE_DATA_TOOLS=Off
$ make tests
...
[ 64%] Linking CXX executable complexrestriction
/usr/bin/ld: CMakeFiles/complexrestriction.dir/complexrestriction.cc.o: in function `(anonymous namespace)::ComplexRestriction_WalkViasBuilder_Test::TestBody()':
/home/mandeep/work/valhalla/test/complexrestriction.cc:26: undefined reference to `valhalla::mjolnir::ComplexRestrictionBuilder::set_via_list(std::vector<valhalla::baldr::GraphId, std::allocator<valhalla::baldr::GraphId> > const&)'
/usr/bin/ld: CMakeFiles/complexrestriction.dir/complexrestriction.cc.o: in function `(anonymous namespace)::ComplexRestriction_WriteRead_Test::TestBody()':
/home/mandeep/work/valhalla/test/complexrestriction.cc:54: undefined reference to `valhalla::mjolnir::ComplexRestrictionBuilder::set_via_list(std::vector<valhalla::baldr::GraphId, std::allocator<valhalla::baldr::GraphId> > const&)'
/usr/bin/ld: /home/mandeep/work/valhalla/test/complexrestriction.cc:57: undefined reference to `valhalla::mjolnir::ComplexRestrictionBuilder::set_via_list(std::vector<valhalla::baldr::GraphId, std::allocator<valhalla::baldr::GraphId> > const&)'
collect2: error: ld returned 1 exit status
make[3]: *** [test/CMakeFiles/complexrestriction.dir/build.make:92: test/complexrestriction] Error 1
make[2]: *** [CMakeFiles/Makefile2:4475: test/CMakeFiles/complexrestriction.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
Some of the files included in
test/CMakeLists.txtneed to haveENABLE_DATA_TOOLSoption turned on, else the tests fail to build:Eg: