Skip building tests with build_tests when tests are disabled
This is the result of discussion in !1456 (comment 141990):
We should guard BUILD_TESTING
and the call to enable_testing()
is already made by CMake, which sets BUILD_TESTING=ON
by default.
Note: this does not collide with !1456