Skip to content

Commit

Permalink
Set VELOX_DISABLE_GOOGLETEST ON for TorchArrow (#352)
Browse files Browse the repository at this point in the history
Summary:
Disable GTest for TorchArrow

Starts to fail with facebookincubator/velox@118feb5

It looks like the compiler flag set at https://github.com/facebookincubator/velox/blob/118feb5d1b946caa614aeb46ccf142c50cd7ddec/CMakeLists.txt#L317
doesn't affects the outer-level project compiler flag
(i.e. TorchArrow, which use Velox as a submodule)

Thus manually set up `VELOX_DISABLE_GOOGLETEST` compiler flag.

Pull Request resolved: #352

Reviewed By: dracifer, bearzx

Differential Revision: D36799796

Pulled By: wenleix

fbshipit-source-id: b27729a337b1a3ac480b0a2a2d5d5cdbfd3dce6e
  • Loading branch information
wenleix authored and bearzx committed Jun 2, 2022
1 parent ede9c5a commit 6262e12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion csrc/velox/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pybind11_add_module(
VariantToVector.cpp
)

set(TORCHARROW_COMPILE_DEFINITIONS)
set(TORCHARROW_COMPILE_DEFINITIONS VELOX_DISABLE_GOOGLETEST)

if(USE_TORCH)
find_package(Torch REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion csrc/velox/velox
Submodule velox updated 173 files

0 comments on commit 6262e12

Please sign in to comment.