Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Build runner test only when VELOX_BUILD_TESTING enabled (faceboo…
…kincubator#11669) Summary: A minor CMake fix for facebookincubator#11609, to address the linking issue when `VELOX_BUILD_TESTING` is off. ```C++ 20:52:36 facebookincubator#10 2.268 CMake Error at velox/velox/runner/tests/CMakeLists.txt:19 (target_link_libraries): 20:52:36 facebookincubator#10 2.268 Target "velox_local_runner_test" links to: 20:52:36 facebookincubator#10 2.268 20:52:36 facebookincubator#10 2.268 GTest::gtest 20:52:36 facebookincubator#10 2.268 20:52:36 facebookincubator#10 2.268 but the target was not found. Possible reasons include: 20:52:36 facebookincubator#10 2.268 20:52:36 facebookincubator#10 2.268 * There is a typo in the target name. 20:52:36 facebookincubator#10 2.268 * A find_package call is missing for an IMPORTED target. 20:52:36 facebookincubator#10 2.268 * An ALIAS target is missing. 20:52:36 facebookincubator#10 2.268 20:52:36 facebookincubator#10 2.268 20:52:36 facebookincubator#10 2.268 20:52:36 facebookincubator#10 2.273 CMake Generate step failed. Build files cannot be regenerated correctly. 20:52:36 facebookincubator#10 2.302 make: *** [Makefile:96: cmake-and-build] Error 1 20:52:36 facebookincubator#10 2.302 make: Leaving directory '/prestissimo' 20:52:36 facebookincubator#10 ERROR: process "/bin/sh -c EXTRA_CMAKE_FLAGS=${EXTRA_CMAKE_FLAGS} NUM_THREADS=${NUM_THREADS} make --directory=\"/prestissimo/\" cmake-and-build BUILD_TYPE=${BUILD_TYPE} BUILD_DIR=${BUILD_DIR} BUILD_BASE_DIR=${BUILD_BASE_DIR}" did not complete successfully: exit code: 2 ``` Pull Request resolved: facebookincubator#11669 Reviewed By: zacw7 Differential Revision: D66560342 Pulled By: xiaoxmeng fbshipit-source-id: 9f6b74c5a64f6e248cb8d86ec213ae76eb894770
- Loading branch information