stack-of-tasks / sot-core

Hierarchical task solver plug-in for dynamic-graph
BSD 2-Clause "Simplified" License
19 stars 32 forks source link

[CMake] avoid tests dir on BUILD_TESTING=OFF #176

Closed nim65s closed 4 years ago

nim65s commented 4 years ago

As I got mails from ROS buildfarm with:

CMake Error at cmake/test.cmake:76 (ADD_EXECUTABLE):
  Target "test_matrix" links to target "Boost::unit_test_framework" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:112 (ADD_UNIT_TEST)
jmirabel commented 4 years ago

Good ! This change should be applied in many other packages.